Skip to content

george-kuanli-peng/example_node

Repository files navigation

Example Node

This project demonstrates some coding examples according to the TaaS release principles. Please refer to the following items:

  • Source comments: models/board.js
  • Unit test (synchronous functions): tests/models/date.js
  • Unit test (asynchronous functions): tests/models/board.js
  • Unit test (mock objects): tests/routes/date.js

Set up

This project is tested on Node v4.2.3, in a machine running Ubuntu Linux 14.04 LTS.

To install the dependent Node packages:

npm install

Unit test

To run unit tests:

npm test

The test results by Mocha will be shown on the console. A coverage report by jscoverage could be found at the covreporter directory.

API documentation

To generate API documents:

npm run-script gendoc

API documents by JSDoc could be found at the doc directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published