Skip to content

ngoctrng/go-hexagon

Repository files navigation

Hexagonal Architecture sample application

Sample application for: https://eazymock.net/blogs/software-design-with-hexagonal-architecture-in-go-pUUFA2vjl2

Development

Init local environment

  1. Copy file .env.example and rename to .env

  2. Update env vars to fit your local

  3. Start local services

    make local-db
  4. Migration

    make db/migrate
  5. Run the server

    make run

Unit test

make test

Create new migration file

sql-migrate new -env="development" create-books-table
  • Result: Created migration migrations/20231219104808-create-books-table.sql

About

Hexagonal Architecture sample application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published