Node Rest API

by lucianostraga

GitHub Readme.md

NodeJS Rest API implementation of Heroku Redis by Luciano Straga

A Redis Rest API with NodeJS using Express JS and Redis

Deploying to Heroku

You can deploy your own copy of the app using the web-based flow:

Deploy to Heroku

Generate some data

Create a new key

GET REQUEST: YOUR_APP_NAME.herokuapp.com/setKey?key=myKey&value=myValue

Generating Random Data

GET REQUEST: YOUR_APP_NAME.herokuapp.com/gendata?count=NUMBER_OF_RECORDS_TO_CREATE

Get One Key

GET REQUEST: YOUR_APP_NAME.herokuapp.com/key/myKey

Get All Keys

GET REQUEST: YOUR_APP_NAME.herokuapp.com/allKeys

Get All Values

GET REQUEST: YOUR_APP_NAME.herokuapp.com/allValues

Delete all data in database

GET REQUEST: YOUR_APP_NAME.herokuapp.com/flushdb