- Clone the repo
- Run
npm install
in the directory. - Create a DynamoDB table to use.
- Set up a environment file in the root of the app called
.env
the 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 build
followed bydocker-compose up
This will run the API in development mode running at0.0.0.0:3000
Changes 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
.