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-setup
to 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
$ make
make requests to localhost:3000
.
to migrate the database, run
$ make db-migrate
to rollback the last set of migrations you ran, run
$ make db-rollback
to create a new migration (let's call it add_new_table
), run
$ make db-migrate-create name=add_new_table