Modified the app.listen to use port.env.PORT so that it can work on AWS Elasticbeanstalk. The latter sets a default port of 8081 as an environment variable.
Added main.js to see if it works with Elastic Beanstalk.
Updated package.json to replace server.js with main.js
Improved error handling when connecting to Redis or Mongodb
Check for redisClient in home.js and mongodb connection in user.js before calling methods on them.
Async parallel calls to connect to Redis and Mongodb and start the server after those calls finish.
Missing return statements in users.js and home.js.
Missing calls to callback() in users.js and home.js when connection to MongoDB and/or Redis fail.
Missing calls to callback() in users.js and home.js when connection to MongoDB and/or Redis fail.
Missing calls to callback() in users.js and home.js when connection to MongoDB and/or Redis fail.
Set redisClient in the context only if it is connected to.
Set redisClient in the context only if it is connected to.
Added a Redis configuration to RedisCloud to test in AWS.
Added a Redis configuration to RedisCloud to test in AWS.
Added a Redis configuration to RedisCloud to test in AWS.
Using environmental variables for redis
Using environmental variables for redis
Using environmental variables for redis
Modified the callbacks in main.js to make sure the server is starting after the connections are complete.
Dynamically build Mongodb URL.