Book Image

Building Scalable Apps with Redis and Node.js

By : Joshua Johanan
Book Image

Building Scalable Apps with Redis and Node.js

By: Joshua Johanan

Overview of this book

Table of Contents (17 chapters)
Building Scalable Apps with Redis and Node.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Node package versions


We will use the Redis client that we installed in an earlier chapter. In addition to this, we are going to use one new package named flow-maintained. Flow-maintained is a small framework that will help us manage the number of callbacks we will have to write. It makes asynchronous code run seemingly synchronous. It also includes a synchronous forEach loop that we will use.

These are the packages to add before running npm install.

  • redis: 0.10.1

  • flow-maintained: 0.2.3

Our dependencies in our main package.json file should now look like the following code:

"dependencies": {
    "body-parser": "1.4.3",
    "connect": "3.0.2",
    "connect-flash": "0.1.1",
    "connect-redis": "2.0.0",
    "cookie-parser": "1.3.2",
    "csurf": "1.3.0",
    "ejs": "0.8.5",
    "express": "4.6.1",
    "express-partials": "0.2.0",
    "express-session": "1.6.5",
    "redis": "0.10.1",
    "cookie": "0.1.1",
    "socket.io": "1.0.6",
    "socket.io-redis": "0.1.3",
    "passport": "0.2.0",
    "passport...