NestJS Rest-Api powered by AWS DynamoDB
- Install
Docker
(anddocker-compose
if you use Linux); - Open a console, navigate to the root of this project (using
cd
) and rundocker-compose up
(sudo docker-compose up
for Linux),docker-compose.yml
must be in the project. If you want to stop the db, usedocker-compose down
(sudo docker-compose down
for Linux); - If you see such statements in the console, db is up. If you faced some db local setting up issues, check this resource
- Install AWS NoSQL Workbench for comfortable data visualization.
- Create .env file in the root and copy & paste mocked data from .sample-env
- Edit .env file by writing correct credentials and other connection data
- Run
yarn start:dev
(npm run start:dev
) for development oryarn start
(npm start
) to up the server - Connect to swagger using
http://localhost:3000/docs
url. Provide simple auth typingsecret
inx-auth-key
input
There is one entity called User
that has nesting objects called Carts
, in other words, One User
to Many Carts
(One-To-Many)