/nodejshelloworld

NodeJS hello world app for running a server on localhost and testing it out using mocha and istanbul

Primary LanguageJavaScript

Node.js Hello-World app

NodeJS hello world app for running a server on localhost and testing it out using mocha and istanbul.

Steps for testing:

  1. Install Node.js using the official website here. Check the version using the command:
node -v
  1. Install npm: It comes installed with Node.js. Check the version using the command:
npm -v
  1. Inside the local repository, run the command:
npm test

This would run the test command specified inside package.json file using mocha and istanbul. Mocha is a flexible javascript framework. Istanbul is a for ensuring complete code coverage. The command would generate test reports, which can be viewed, graphically, under coverage/lcov-report/index.html.