Categorygithub.com/UoYMathSoc/2020-site
repositorypackage
0.0.0-20211217191615-a79a8e1b810c
Repository: https://github.com/uoymathsoc/2020-site.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

2020-site

Go

requires: github.com/kyleconroy/sqlc

Edit Config

$ 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

Development

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

Production

Run make run to start the website and database in docker on port 8080

Remember to set host = "db" inside config.toml

Generate Database Package

If you add sql to the repo run the following to generate the corrosponding go code

$ sqlc generate