Lyticaa API.
If you are new to Golang, please follow the setup instructions here.
Please see the installation instructions here
Before running this project, please ensure that you have the following environment variables set:
APP_NAME=
SENTRY_DSN=
NEWRELIC_LICENSE_KEY=
PORT=
JWKS_URL=
JWT_AUD=
JWT_ISS=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_S3_UPLOAD_BUCKET=
If you are unsure as to what these values ought to be, then please check with a colleague.
To run the linter:
make lint
To run the tests and see test coverage:
make tests
To compile and install the binary:
make install
make run-api-service
To generate documentation for the API:
make generate-docs
The docs will then be available at:
./api/docs/index.html
A Docker stack is provided with this project. To boot the stack, simply run:
make run-stack
Please ensure that prior to running this, you add the above environment variables to the build/.env
file. Docker Compose will use these when building the container.