git clone https://github.com/tlkv/nodejs2022Q2-service.git
cd nodejs2022Q2-service
git checkout logging
npm i
(make .env file from .env.example if .env is not present)
npm run docker:compose
OR
npm run docker:compose:rebuild (full rebuild)
tests:
npm run test:auth
npm run test (without authorization)
image scan:
npm run docker:scan:app
npm run docker:scan:db
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