Since this tries to follow the 3 Musketeers methodology, the following are heavily used:
Docker
Docker Compose
Make
Usage
configure
$ 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.
run tests
$ make test
tidy dependencies
$ make deps
build serverless functions
$ make build
deploy serverless application
$ make deploy
Helpers during development:
format all .go files in project (using go fmt)
$ make fmt
generate test mocks (to be used with stretchr/testify) for all interfaces in project