A project that provides an in-memory key-value store as a REST API. Also, it's containerized and can be used as a microservice.
Run these commands on this project's root:
docker build -t "memory" .
docker run -p 127.0.0.1:8080:8080 -d memory
There are some environment variables that this project uses, and they can be set with docker run
docker run -p 127.0.0.1:8081:8081 -d \
-e AUTO_SAVE_INTERVAL=10 \
-e PORT=8081 \
memory
This project is deployed to Heroku: https://thawing-fjord-72264.herokuapp.com/
The API documentation: https://documenter.getpostman.com/view/551409/UVJhEFaU
To see the godoc documentation run these commands on the project's root
godoc -http=:6060 -play
And then visit this link: http://127.0.0.1:6060/pkg/github.com/brnskn/kv-memory/
- Use repository and singleton design patterns.
- Write a readme.
- Add comment lines for go doc.
- Add postman API doc link.
- Write tests.
- Add a Dockerfile.
- Deploy to Heroku.
- Add a LICENSE.
- Add GitHub actions(test, lint, build).
- Add HTTP request logs