Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.06 KB

HOWTO.md

File metadata and controls

42 lines (26 loc) · 1.06 KB

How to build

Install nodejs and express

In order to install nodejs and express, please reference to this article.

To launch the server locally, call npm start.

$cd src/whiteboard
$node app.js                ## or: $npm start in express 4.x

## start webrtc server
$cd src/rtcserver
$node app.js   ## or run in production env:
$NODE_ENV=production node app.js

If the server is launched successfully, you can visit the home page at http://localhost:3000/.

Automation with grunt

Gruntjs Gruntenv production mode

Minify

uglifyjs2

  • example:

    $uglifyjs sample.js -c -m -o sample.min.js

RequireJS optimization

RequireJS optimization

  • exmaple:

    $r.js -o optimize=uglify2 baseUrl=. name=main out=main.min.js

Bootstrap

PaperJS