Simple starter kit for NodeJS Coding Dojo projects.
Clone the repository via git:
git clone git@github.com:pcdevil/node-codingdojo-starterkit.git
You might want to fork it for git push
- Create tests in the index.spec.js with the help of Chai assertion library
- Run Mocha and see the failing tests:
npm test
- Statisfy tests with implementation in the index.js
- Refactor implementation until the tests pass again
Repeat steps as you want
command | description |
---|---|
npm start |
runs the index.js |
npm run start:watch |
runs the index.js and restarts it if code changes |
npm test |
runs the index.spec.js with mocha |
npm test:watch |
runs the index.spec.js with mocha and restarts it if code changes |