Synchronize your NodeJS application with your browser
npm install devsyncSynchronize your NodeJS application with your browser.
```
$ npm install devsync --save
Install DevSync as a global module using npm install -g devsync and then
you will be able to execute:
``
$ devsync ./app.js
Add a task for synching
`
const devsync = require('devsync');
gulp.task('sync', devsync(/ options /));
`
And run gulp sync
DevSync will export an APP_PORT environment variable with the port
where the application is expected to run.
You may want to use this environment variable to ensure DevSync will
work with your application.
Express example:
`
const express = require('express');
const app = express();
/ Configure express /
app.port(process.env.APP_PORT || 3000);
`
Running all the tests:
``
$ npm test
Running a specific test:
```
$ mocha -g '
This library is licensed under Apache 2.0. Full license text is available in
[COPYING][license].
[license]: http://www.apache.org/licenses/LICENSE-2.0