Tag Archives: express

Function call in CoffeeScript

Here’s a little hassle in CoffeeScript syntax. Calling a function with parameter but without parentheses is fine. Below sample code works. express = require ‘express’ app = express() app.configure ->   app.use express.bodyParser()   app.use express.methodOverride()   app.use app.router app.get … Continue reading

Posted in Node.js | Tagged , | Comments Off on Function call in CoffeeScript

WebSocket with socket.io

Here’s a sample chat using socket.io. You can find the codes here. Live Demo. The style sheet is modified to work on iPhone, Android, Chrome, etc. The server echoes back all messages sent by each user in a browser. Socket.io … Continue reading

Posted in Node.js | Tagged , , , , | Comments Off on WebSocket with socket.io

TODO List with node.js, express, dust, backbone, iscroll & jquery mobile

Here’s a small project to play with a few modules in Node. Backbone provides a simple MVC and it’s possible to share the models and views in both client and server side. It can support one page web app with … Continue reading

Posted in Node.js | Tagged , , , , | Comments Off on TODO List with node.js, express, dust, backbone, iscroll & jquery mobile