2020-site

command module
v0.0.0-...-a79a8e1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 12 Imported by: 0

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL