Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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