/node-redis-crud

A simple CRUD application in NODEJS and Redis as database

Primary LanguageJavaScript

node-redis-crud

A simple crud application with nodejs framework and redis database

Make sure Redis is running on your local machine and you have nodejs framework installed

How to use

git clone https://github.com/ayomidearo/node-redis-crud.git

cd node-redis-crud

run npm install

to start application, run node app.js

Application is running on http://localhost:2300/

Services to call

Add User

[POST] http://localhost:2300/user/add

request body -> id,firstname, lastname, age

Get User By ID

[GET] http://localhost:2300/user/:id

Update User

[PUT] http://localhost:2300/user/:id

request body -> firstname, lastname, age

Delete User

[DELETE] http://localhost:2300/user/:id