Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solutionstack/node-crud-demo
A Node C-R-U-D Demo with Redis in memory cache
https://github.com/solutionstack/node-crud-demo
crud demo nodejs redis
Last synced: 7 days ago
JSON representation
A Node C-R-U-D Demo with Redis in memory cache
- Host: GitHub
- URL: https://github.com/solutionstack/node-crud-demo
- Owner: solutionstack
- Created: 2018-02-12T19:13:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T07:31:57.000Z (almost 7 years ago)
- Last Synced: 2023-12-30T20:37:45.495Z (11 months ago)
- Topics: crud, demo, nodejs, redis
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-crud-demo
## A simple Node CRUD backend with redis
# API
```
GET / => returns all stored items
```
```
POST /api/add/:key/:value => creates a new key-value pair
```
```
GET /api/read/:key => Read in-memory value, stored with key (IF EXISTS)
``````
POST /api/update/:key/:value => Update Value at Key entry, (IF EXISTS)
```
```
POST /api/delete/:key => Delete entry at Key, if it EXISTS
```## Installation
> run in the project folder
```
npm install
```
> Make sure redis server is running in the background, get it here https://redis.io/download> run
```
node app.js
```
> Visit http://localhost:8081