- Git - Download & Install Git.
- Node.js - Download & Install Node.js and the npm package manager.
git clone -b logging-auth https://github.com/KalinkinFiz/nodejs2022Q4-service.git
npm install
Run in terminal:
docker-compose up
If you want to stop, press the keyboard shortcut first Ctrl+C, then enter in the terminal:
docker-compose down
Rebuild images & start containers:
docker compose up --build
Сonnected services:
- Node
- PostgreSQL
- pgAdmin (http://localhost:5050/)
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/.
# development
$ npm run start
# watch mode
$ npm run start:dev
After application running open new terminal and enter:
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