amercier / kitten-as-a-service

Web service written in NodeJS that displays a kitten image randomly picked from Bing Images
https://kitten.amercier.com/
ISC License
1 stars 0 forks source link
bing bing-api bing-image image image-search kaas kitten kittens nodejs service web webservice

kitten-as-a-service

Web service written in NodeJS that displays a kitten image randomly picked from Bing Images.

Build Status Test Coverage Code Climate Greenkeeper

Created with npm-package-skeleton.

The web service exposes mainly two URLs:

Demo

Requirements

MacOS install instructions using Homebrew:

brew install nvm
nvm install node
npm install -g yarn

Local setup

  1. Clone this repository
    git clone https://github.com/amercier/kitten-as-a-service.git
    cd kitten-as-a-service
  2. Install dependencies
    yarn install
  3. Start server
    export MICROSOFT_AZURE_API_KEY=********* yarn start
  4. Visit http://localhost:3000/

Deployment

Deploy on a NodeJS server (ex: Heroku), with the following environment variables:

Also, you can set DEBUG to true to display more verbose logging.

License

This project is released under ISC License. All Microsoft, Bing, Azure brands are property of their respective owners. All pictures are property of their respective owners.