- Remove ".example" from
.env.example
and from.env.test.example
- run
docker-compose up -d
You haven't installed docker and docker-compose on your system?
You'll only need these commands when using docker-compose:
# start running containers
docker-compose up -d
# shut-down running containers
docker-compose down
# list running containers
docker-compose ps
Create a free code climate account and add the CODE_CLIMATE_TEST_REPORTER_ID
to your github repo settings.
Default setup:
npm run dev
- open
localhost:3000
Test Driven Development:
Recommended workflow when writing code for ./business-logic
.
npm run test
- in chrome open:
chrome://inspect
and click on the remote target URL. This will open a console with your test process. - add
debugger
statement in your code - tests will be re-run once you save a file
npm run test
Optionally, you can add a name pattern of the file name:
npm run test User
Check test coverage:
npm run test:coverage
- open file
./coverage/lcov-report/index.html