http://localhost:8085/swagger/index.html
POSTGRES_USER=develop
POSTGRES_PASSWORD=develop
POSTGRES_PORT=5436
POSTGRES_HOST=localhost
SERVER_PORT=8085
install
brew install golang-migrate
https://github.com/golang-migrate/migrate
migrate create -ext sql -dir ./schema -seq init
make migrate_up
alias for
migrate -path ./schema -database 'postgres://develop:develop@localhost:5436/develop?sslmode=disable' up
make migrate_down
alias for
migrate -path ./schema -database 'postgres://develop:develop@localhost:5436/develop?sslmode=disable' down
make db_cli
alias for
docker-compose exec postgres psql -U develop
https://github.com/swaggo/swag
swag init -g cmd/server/main.go