$ npm run start:local
This will start the app but in a background process. To kill the process, run:
$ ps | grep node
Inspect the output and run
$ kill -9 [PID]
Where PID
references each process that is running node or nodemon.
To test, run:
$ npm test
This will run jest assertions against application code and generate code coverage reports. To view the HTML report,
$ open coverage/index.html
This will open reporter in default browser.
- Write a NPM script that will automatically run
ps
and kill all PIDs that correspond to node processes