Mailbox service is responsible for all the in-app messaging and notifications
use CONFIGOR_ENV
environment variable to specify which config to use. available configs are
config.dev.yml
for development environmentconfif.test.yml
for the test environmentconfif.prod.yml
for the production environment please refer to template file to see the available field for configuration
-
download the dependencies
make init
-
run the tests
make test
-
generate test coverage badge
gopherbadger -md="README.md"
-
run test coverage and generate coverage report in html page
make coverage
-
build the server executable:
please note that the default configuration is for Production environment.
-
for
test
ordev
environment, set the variableCONFIGOR_ENV
totest
:CONFIGOR_ENV=test make build-server
-
for production environment:
make build-server
Before building docker container you need to export the following variables and refer to Makefile for docker related commands
export export GITHUB_USER=[github-username]
# this can be created from your personal account -> Developer settings -> personal access token
# this token should be read for repos and that's it
export export GITHUB_TOKEN=[github-user-token]
# AWS Stuff
# you can get them from ~/.aws/credentials
export AWS_ACCESS_KEY_ID=[aws_access_key_id]
export AWS_SECRET_ACCESS_KEY=[aws_secret_access_key]
export AWS_DEFAULT_REGION=eu-west-1