- Clone the repo
- Run
npm installin the directory. - Create a DynamoDB table to use.
- Set up a environment file in the root of the app called
.envthe file will hold your AWS keys. The file should look like this:
AWS_ACCESS_KEY_ID=Your Access Key
AWS_SECRET_ACCESS_KEY=Your Secret Access Key
AWS_REGION=Your AWS Region
- Run
docker-compose buildfollowed bydocker-compose upThis will run the API in development mode running at0.0.0.0:3000Changes in the project will be reflected in the API.
You can run unit tests by using the command npm run test
These tests can be run by using the command npm run test-e2e
Run docker-compose -f docker-compose.yml build followed by docker-compose up This will run the API in prod mode running at 0.0.0.0:3000.