Lyticaa Data (process uploads).
If you are new to Golang, please follow the setup instructions here.
Before running this project, please ensure that you have the following environment variables set:
ENV=
APP_NAME=
SENTRY_DSN=
NEW_RELIC_LICENSE_KEY=
DATABASE_URL=
AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_SQS_QUEUE=
AWS_S3_UPLOAD_BUCKET=
GMT=
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-worker-service
The worker will then connect to SQS and listen for any incoming messages to process.
This project makes use of Postgres.
To start a local Postgres instance, run:
make docker-pg
Then, to create the database and apply the correct role:
make create-database
make create-user
Add your migrations to the db/migrations
folder. To apply the migrations:
make migrate