Go Modern Api example whit: Clean architecture, Hexagonal architecture, CQRS
- SERVICE_PORT: Port for deployment.
- DB_USER: Database user.
- DB_PASSWORD: Database password.
- DB_SCHEMA: Database schema.
- For local development execution use the command
make rundev
, this commands uses .dev.env file.
To run the tests use the commands:
- Unit tests:
make unittests
.- Unit tests with coverage:
make unittestscover
. - Unit tests with coverage in HTML:
make unittestscoverHTML
.
- Unit tests with coverage:
- End-to-End tests:
make e2etests
, this test uses .e2e.env file. - All tests:
make tests
.