1.9.1-a • Published 5 months ago

piq1_reports_service v1.9.1-a

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

piq1_reports_service

Service used for generating and sending out reports

Total coverage

Setup env vars

  1. Rename .env.aws.example to .env.aws and fill in with the aws credentials

.env.aws variables

  • AWS_ACCESS_KEY_ID: access key id for a user that has access to the aws npm registry
  • AWS_SECRET_ACCESS_KEY: access key for the same user
  • AWS_DEFAULT_REGION: region for the npm registry. Currently us-west-2

Running tests

First go inside the express container with the command below:

docker-compose run --rm piq1_reports_service npm run test

Deploying the serverless environment

First go inside the express container with the command below:

docker-compose run piq1_reports_service bash

When inside the container, run the serverless deploy command

docker-compose run piq1_reports_service sls deploy --stage the-desired-stage

Other useful information

Creating a package-lock.json file from the installed packages

npm i --package-lock-only