Skip to content

MonstraG/go-api

Repository files navigation

Library docs

Concept docs

Generating secret for jwt tokens:

openssl rand -hex 32

Building

  • Don't forget to start docker:
sudo systemctl start docker
  • run build-and-get-size from makefile (or just run make)

Other notes

Default address is 0.0.0.0 not localhost because docker.

When I, inevitably, would want to stop docker container and run the app straight:

docker container stop go-api

Will stop the server

docker system prune -a --volumes

Will delete all build artefacts from disk.

And, just in case, list containers:

docker container list