Golang 1.17 & Postgres
- Gin
- Godotenv
- Golang-Migrate
- Sqlx
- Sqlmock
make test
-
Initialize environment variable into
.env
file -
Prepare database
-
Migrate table schema
make migrate
-
Run
make run
-
Ensure
golang-migrate
CLI has been installed on your machine -
Run
migrate create -ext sql -dir migrations -seq <changes_filename>
-
Migration file will be created in
/migrations
dir