-
Book Overview & Buying
-
Table Of Contents
Building Scalable Apps with Redis and Node.js
By :
Usually we list out the new npm packages we will use, but the application finally has all the npm packages it needs. We will need a few Bower packages to finalize development, though. The following is the inclusive list of packages:
react: 0.11.1
backbone: 1.1.2
postal.js: 0.10.3
jquery: 2.1.1
momentjs: 2.8.1
We have covered React, Backbone, Postal.js, and jQuery already. Moment.js will be used to turn time spans into human readable formats. We can now create a bower.json file in the root of our packtchat directory and add the following code to it:
{
"name": "nodechat",
"dependencies": {
"react": "0.11.1",
"backbone": "1.1.2",
"postal.js": "0.10.3",
"jquery": "2.1.1",
"momentjs": "2.8.1"
}
}We now run bower install and all the frontend dependencies will be downloaded and added to bower_components.
Note that the site has only been tested in Chrome, Safari, and Firefox. It might work in IE 11, but I would not hold out much hope for previous versions...
Change the font size
Change margin width
Change background colour