ZPT-JS tutorial - Building and testing

Starting ZPT-JS

Asumming you have downloaded ZPT-JS before, move to the directory of ZPT-JS and use the next command to install the dependencies of ZPT-JS:

$ npm run install
                

Then use the next command to initialize a beefy server (port 9966) to make it easy to test ZPT-JS without browserifying by hand and a HTTP server (port 9000) to serve static files (HTML, CSS and JSON files):

$ npm run start
                

ZPT-JS uses Grunt as task runner tool. Grunt file uses:

The web of ZPT-JS

Use the next command to initialize a HTTP server (port 9001) to serve static files of the web of ZPT-JS:

$ npm run web
                

Open http://localhost:9001 with your favourite browser to view the web of ZPT-JS.

Testing

ZPT-JS uses QUnit as testing framework. There are some different ways for testing ZPT-JS: