Template for serverless golang projects.
Since this tries to follow the 3 Musketeers methodology, the following are heavily used:
- Docker
- Docker Compose
- Make
$ make .env
- see generated
.env
file for configuration
Note: For deployment via CI/CD, CICD_MODE
environment variable should be set to true
in the build server. All configuration should also be set in the build server's environment variables. They will automatically be used if .env
is generated from .env.cicd
.
$ make deps
$ make test
$ make build
$ make deploy
$ make fmt
generate test mocks (to be used with stretchr/testify) for all interfaces in project
$ make genMocks