This template uses a DAO/Facade pattern. The internal package contains basic example setups for each layer.
Includes the following:
- OpenAPI 3.0 documentation
- GitHub Workflows for Test/Build phases
- Preset Docker + docker-compose files
Basic setup
-
Create a local Postgres database and update the config.yaml file with the details
-
Update go.mod and file imports with your repo name
-
Run the following commands to update dependencies:
go get -u ./...
go mod tidy
-
Make a run configuration as seen below with your repo name: