/node-redis

A CRUD RESTFUL API USING REDIS AS DATABASE

Primary LanguageJavaScript

CRUD API with NodeJS and REDIS

NodeJS Installation

You can install NodeJS by downloading the latest binaries for your desired operating system from their official download page.

Redis Installation

Mac

redis

you can install redis uning homebrew.

run brew install redis in terminal to install redis on your mac using homebrew, assuming you have homebrew installed.

Linux

You can learn how to install redis on Linux here

Windows

You can learn how to install redis on Windows here

Setting up

npm start

Body Parameters

The API expect the following Parameters:
id of type int
email of type string
phone of type string
last_name of type string
first_name of type string

Using Postman

Make sure post is set to x-www-form-urlencoded

  • add user (POST): /user/add
  • delete user (DELETE): /user/delete/{id}
  • get a user (GET): /user/{id}
  • update a user (PUT): /user/update/{id}
  • get all users (GET): /users

add user

get user by id

get all users

delete a user

Regards
Michael Okoh