Messing around with Node.js, Socket.IO and Dust.js in order to organize office coffee brewing
- Node.js - server side rest
- Dust.js - client side js templating
- Socket.io - server and client websocket impl
- Install node and add to your path
- Setup proxy for npm (optional):
npm config set proxy http://HOST:PORT
and npm config set https-proxy http://HOST:PORT
- Install some dependencies
npm install dustjs-linkedin dustjs-helpers socket.io dust-compiler debug gravatar underscore
- Compile the dust templates:
node node_modules/dust-compiler/lib/dust-compiler.js -s src/dusts/ -d public/js/compiled/ --bootstrap
- If you are developing the dust templates then you can leave the compiler in watch mode
node node_modules/dust-compiler/lib/dust-compiler.js -s src/dusts/ -d public/js/compiled/
NOTE: on Ubuntu you need to type "nodjs" instead of "node"
mkdir -p public/js/compiled
node app.js
open your web browser at http://HOST:7777/