https://github.com/neuodev/super-redis
https://github.com/neuodev/super-redis
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neuodev/super-redis
- Owner: neuodev
- Created: 2021-10-19T07:53:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-19T07:59:49.000Z (almost 5 years ago)
- Last Synced: 2025-10-05T23:01:45.926Z (10 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Super Redis
This server will be used that reading/writing to redis is functioning inside EC2 on AWS
The server inclue wrting and saving user data. Also two routes to make sure that the server is working with the outside world
### To run the project
```bash
npm i && npm start
```
if redis server is working should see this exact response
```bash
Save A user with id user001
Read user with id of user001
Server is run on port 3000
Redis connected...
Should be saved now...
{
err: null,
data: { first_name: 'Jone', last_name: 'Doe', email: 'jone@test.com' }
}
```
## Test redis with an api
1. `GET /write` will save another user to redis
2. `GET /read` will try to read the use you just saved with the `GET /write` and return the user data in a json response. if you can see any response this mean that server crashed and the saving is failed