npm i
To run the server and watch both client and server-side js files:
npm start
├── host-public
│ ├── index.html
│ └── js
│ └── host-app.js
├── iframe-public
│ ├── index.html
│ └── js
│ └── iframe-app.js
├── index.js
├── package.json
├── routers
│ ├── assets.js
│ └── host.js
└── server.js
The client side javascript for both the host and iframe apps are setup to use browserify.
// For example:
var myModule = require('path/to/my/module');
myModule.isAGreatModule();
- HOST -
http://localhost:3031
- IFRAME -
http://localhost:3032/assets