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/
.
Gruntjs Gruntenv production mode
-
example:
$uglifyjs sample.js -c -m -o sample.min.js
-
exmaple:
$r.js -o optimize=uglify2 baseUrl=. name=main out=main.min.js