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)

And to run it:

docker run --name go-api-container --publish 8080:8080 --volume ./data:/myapp/data myapp

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 --all

Updating

  1. Update locally installed go version
  2. Update dependencies in go.mod
  3. Update github action versions
  4. Update alpine/go versions in Dockerfile
  5. Update vendored htmx version

About

my api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published