https://github.com/razvanmtn/key-value-store
Simple key-value in-memory database implemented in Nodejs
https://github.com/razvanmtn/key-value-store
key-value nodejs rest-api
Last synced: 2 months ago
JSON representation
Simple key-value in-memory database implemented in Nodejs
- Host: GitHub
- URL: https://github.com/razvanmtn/key-value-store
- Owner: razvanmtn
- Created: 2024-07-26T11:25:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T12:49:28.000Z (almost 2 years ago)
- Last Synced: 2025-02-01T03:45:01.544Z (over 1 year ago)
- Topics: key-value, nodejs, rest-api
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# key-value-store
Simple key-value in-memory database implemented in Nodejs.
## Run
```
yarn start
```
## Rest Endpoints
Status text
`GET:/`
Fetch Value
`GET:/:key`
Create Value
`POST:/:key`
Create Value with expiration
`POST:/:key?ms=5000`
Delete Value
`DELETE:/:key`
## Build docker image
`docker build -t key-value-store .`
## Run docker image
`docker run -d -p 3000:3000 key-value-store`