The DynamoDB Nest API is a basic RESTFUL API that implements all the CRUD operations
- NestJS
- DynamoDB
- Docker
- Clone the repo
$ npm install- Make sure to have Docker installed
- Pull DynamoDB docker image:
docker pull amazon/dynamodb-local - Run DynamoDB locally using docker:
docker run -p 8000:8000 amazon/dynamodb-local - Set up AWS credentials:
aws configure - Copy
.env.exampleto.envthen set the port - Install packages:
npm installoryarn install - Create table:
aws dynamodb create-table --cli-input-json file://script.json --endpoint-url http://localhost:8000 - Run the app:
npm run stat:devoryarn start:dev
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov