PostgreSQL, SQL query builder and migrations usage example in Go
- Run Postgres locally using Docker Compose:
make run-postgres - Install golang-migrate:
brew install golang-migrate - Apply migrations:
make migrate - Generate SQL Builder and Data Model types:
make jet-gen - Run the application:
go run main. go - Alternatively, run the app and PostgreSQL using Docker Compose:
make build && make run