- Setup postgresql on localhost.
- create a database named todo.The code assumed the user name and password to be
local
and the database name to betodo
. - make a copy of
build.sh.example
asbuild.sh
. Set the appropriate database params. - Make a copy of
dbconf.yml.example
asdbconf.yml
Set the appropriate database connection params.
goose up
xo pgsql://<user>:<passowrd>@<host>/<db_name>?sslmode=disable -o internal/models --suffix=.go
./build.sh
go run cmd/main.go