1.0.0 • Published 8 years ago

front-office v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

front office

Load and run scripts into users browsers interactively.

usage

npm install --save-dev websocket-eval
npm install --save-dev front-office

client

Build a client script

// client.js
var websocketEval = require('websocket-eval');
websocketEval('ws://localhost:8000');

Now bundle:

browserify client.js -o bundle.js

And include in your html:

<script src="client.js"></script> 

server

Start the server

# "front-office" if you installed globally 
./bin/start.js

Follow the log file

tail -f log.txt

And reload your browser.