Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.09 KB

README.md

File metadata and controls

52 lines (44 loc) · 1.09 KB

Third Party JS Boilerplate

Installation

npm i

Run

To run the server and watch both client and server-side js files:

npm start

Structure

├── 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

Public Apis

Client

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();

Pages

  • HOST - http://localhost:3031
  • IFRAME - http://localhost:3032/assets