- Git - Download & Install Git.
- Node.js - Download & Install Node.js and the npm package manager.
git clone {repository URL}
npm install
npm start
After starting the app on port (4000 as default) you can open in your browser OpenAPI documentation by typing http://localhost:4000/doc/. For more information about OpenAPI/Swagger please visit https://swagger.io/.
Create image of PostgreSQL database
docker build -t db-image-name ./db/
Create image of application
docker build -t app-image-app-name .
run PostgreSQL database image
docker run --name postgres -e POSTGRES_PASSWORD=mysecretpassword -d db-image-name
run application image
docker run --name nest-js -d app-image-app-name
run multi-container application
docker compose up
After application running open new terminal and enter:
To run all tests without authorization
npm run test
To run only one of all test suites
npm run test -- <path to suite>
To run all test with authorization
npm run test:auth
To run only specific test suite with authorization
npm run test:auth -- <path to suite>
npm run lint
npm run format
Press F5 to debug.
For more information, visit: https://code.visualstudio.com/docs/editor/debugging