A sample code of REST API with Domain Driven Development
- echo
- go-pg
git clone git@github.com:Kourin1996/go-crud-api-sample.git
go build ./api/main.go
export POSTGRESQL_URL='postgres://postgres:postgres@localhost:5432/test?sslmode=disable'
POSTGRES_URL=postgres://postgres:postgres@localhost:5432/test?sslmode=disable migrate -database ${POSTGRESQL_URL} -path migrations up
./main