(...tbd)
The application uses Node.js, a server-side JavaScript engine, and Polymer, a framework for creating web components.
$ git clone https://github.com/kgryte/nodebook.gitBefore running the application, install development dependencies
$ make installwhich installs node modules and bower components.
To start the application server
$ npm startor, alternatively, from the top-level application directory
$ node ./bin/server.jsTo view the application in your local web browser, navigate to
http://127.0.0.1:7337
...tbd.
To run units tests for both server- and client-side code,
$ make testAll new feature development should have corresponding unit tests to validate correct functionality.
Server-side unit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command from the top-level application directory:
$ make test-serverUnit tests are run via web component tester, which in turn uses the Mocha test framework with Chai assertions. To run the tests, execute the following command from the top-level application directory:
$ make test-uiThis repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command from the top-level application directory:
$ make test-covIstanbul creates a ./reports/coverage directory. To access HTML reports,
$ make view-covTo generate a test coverage report exclusively for server-side tests,
$ make test-server-covIstanbul creates a ./reports/coverage/server directory. To access an HTML version of the report,
$ make view-server-covTo generate a test coverage report exclusively for client-side tests,
$ make test-ui-covIstanbul creates a ./reports/coverage/ui directory. To access an HTML version of the report,
$ make view-ui-covAll JavaScript development, both client- and server-side, should follow the style guide.
...tbd.
Copyright © 2015. Athan Reines.