Skip to content

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.

License

Notifications You must be signed in to change notification settings

brnskn/kv-memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy to Use In-Memory Key-Value Store

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.

Installation

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

Demonstration

This project is deployed to Heroku: https://thawing-fjord-72264.herokuapp.com/

API Documentation

The API documentation: https://documenter.getpostman.com/view/551409/UVJhEFaU

GODOC Documentation

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/

Roadmap

  • 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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published