go build -o app
./app server
open http://localhost:1323
go install github.com/spf13/cobra-cli@latest
This allows us to use the cobra-cli
command in our command line.
cobra-cli add <filename>
go install -v github.com/rubenv/sql-migrate/...
This allows us to use the sql-migrate
command in our command line.
# required running DB
# required driver config file dbconfig.yml
sql-migrate up
sql-migrate down
sql-migrate status
go install github.com/volatiletech/sqlboiler/v4@latest
go install github.com/volatiletech/sqlboiler/v4/drivers/sqlboiler-psql@latest
This allows us to use the sqlboiler
command in our command line.
# required running DB
# required driver config file sqlboiler.toml
sqlboiler psql
# note to create parameter types
swagger generate model --spec=api/definitions/auth.yml --target=internal --model-package=types