building this to learn go
you will need to install
- Go
- PostgreSQL
the first time you check out this project, install gometalinter and set up the database.
$ make tools
$ make db-setupto see all the makefile commands, run make help.
install dependencies, update the database by migrating it to the latest version, and run the server.
$ make deps
$ make db-migrate
$ makemake requests to localhost:3000.
to migrate the database, run
$ make db-migrateto rollback the last set of migrations you ran, run
$ make db-rollbackto create a new migration (let's call it add_new_table), run
$ make db-migrate-create name=add_new_table