requires: github.com/kyleconroy/sqlc
$ cp config.toml.example config.toml
$ nano config.toml
Set database host to run to "db" when running inside docker, make run
, and "localhost" when running in develpoment, make dev
Run make db
to start the database in docker and make dev
to start an instance of the website locally
Remember to set
host = "localhost"
inside config.toml
Run make run
to start the website and database in docker on port 8080
Remember to set
host = "db"
inside config.toml
If you add sql to the repo run the following to generate the corrosponding go code
$ sqlc generate