Skip to content

Dockerized application that allows you to store key-values using an API and Web Socket. These values are stored in a Mongo db

Notifications You must be signed in to change notification settings

leandro-hl/key-value-socket

Repository files navigation

key-value-socket

How to get running

Windows:

Make sure you have Hyper-V enabled and WSL2 installed (this is to run linux based systems on Windows) Install Docker Desktop

Linux:

Install Docker and Docker-compose

Docker:

Run in development mode:

sudo docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

Attach one of the configured debuggers using vs code if you want to debug tests/app/app inside Docker.

Run in production mode:

sudo docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d

To stop and remove the container group:

sudo docker-compose down

Notes:

  • to get a key value use api/v1/keys/:key. Eg: api/v1/keys/cars
  • Keep in mind that both development and prod share the same container_name so when starting one or the other, the container would be recreated to meet the new configuration.

About

Dockerized application that allows you to store key-values using an API and Web Socket. These values are stored in a Mongo db

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published