Skip to content

imagecdn/random-image-service

Repository files navigation

Random Image API

Build status ISC licensed

A webservice designed to return random images from various providers, given specific criteria. Contributions welcome!

Documentation available here: https://random.responsiveimages.io/v1/docs

Contents

Requirements

The Random Image API requires Node.js 8.x and yarn.

Running Locally

yarn start-dev

This will spawn a local server on port 3000, which can be accessed at http://localhost:3000/. In development mode the service will use a Map as its cache, which simulates the behaviour with Redis used in production.

Deploying

The production instance of this service runs on Kubernetes.

now secret add random-images-redis-url redis://redis-url