Skip to content

Kubeitron/soda-api

Repository files navigation

SODA API

TBD

Enviroment Variables

  • PORT used to determine the port bound to by the API at startup
  • MONGO_INITDB_ROOT_USERNAME root user for mongodb
  • MONGO_INITDB_ROOT_PASSWORD root password for mongodb
  • MONGO_INITDB_DATABASE initial database
  • MONGO_CLUSTER_ADDRESS address to connect to

How to develop

  • Build and bring up the local dev container: docker-compose up -d api

  • Attach to the container using VScode's extension: Remote - Containers

  • Develop!

  • you can run your binaries in the container: cd cmd/api/ && go build && ./api

  • Note you need to re-build the image if you need to install any go modules via go get outside the container (working on a fix for this)

To test

  • Run go test ./cmd/api/tests

Misc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published