Skip to content

Latest commit

 

History

History
88 lines (58 loc) · 1.23 KB

README.md

File metadata and controls

88 lines (58 loc) · 1.23 KB

lyticaa-data

Lyticaa Data (process uploads).

Setup

Golang

If you are new to Golang, please follow the setup instructions here.

Environment

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.

Linter

To run the linter:

make lint

Tests

To run the tests and see test coverage:

make tests

Install

To compile and install the binary:

make install

Run the Worker

make run-worker-service

The worker will then connect to SQS and listen for any incoming messages to process.

Database

This project makes use of Postgres.

Setup

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

Migrations

Add your migrations to the db/migrations folder. To apply the migrations:

make migrate