For the Firefox Open App Days I wrote a chat demo to introduce various technologies for mobile Apps including a native iPhone application created with Apache Cordova, an HTML5 App for the brand new Firefox OS and a HTML5 web site for mobile Browsers. To broadcast chat messages between users, socket.io is used. The source code can be downloaded and forked from GitHub: OpenAppChat.
To run the demo, you just need node.js installed on your computer. In your Terminal, cd to the OpenAppChat directory and run:
iOS: iOS-OpenAppChat/www/js/index.js Firefox OS: fOS-OpenAppChat/www/js/lib/app.js
I can also recommend to have a look at nodejitsu, those guys are doing a pretty good job in hosting node.js applications, so you can just change the file
package.json, change the subdomain and run
to deploy the app to your account. To run one of the apps, change the socket.io connect line to your nodejitsu subdomain which you can specify in
To install the Firefox OS App in the simulator or on a device, go to the directory and run
Feel free to modify the code and please share your experience and learnings with the community.