/morgan

Morgan is an example golang clean architecture implementation.

Primary LanguageGoApache License 2.0Apache-2.0

morgan-go

Morgan is a clean architecture example written in Go. It is a side project to learn Go and clean architecture.

How to run

Start Postgres

docker-compose up -d

Install Goose

go install github.com/pressly/goose/v3/cmd/goose@latest

Run migrations

goose -dir migrations postgres "user=postgres password=postgres dbname=morgan sslmode=disable host=localhost" up

Run the app

go run cmd/main.go