NodeJS, Redis
Hit npm run start. This will internally start webpack and node server. If your webpack build is successful, you can see the dist in the root of your directory
On hit of FB button on dashboard, redirect to /auth/facebook. If everything is good, you will see the session is response. For Google, hit the route /auth/google.
If the calls fail, you will hit the /failure block.
The routes for social integration is defined under server/routes/login/login.js
Create logically grouped folders for the functionality the routes serve. create <routename.js> inside the folder. Require the same in server/routes/api.js
server/config.js shall hold all the environment variables grouped by Environments The object name that equals the node env name is served. Require it by require(path_to_config);
Redis server app.get('redis') will give you the instance of redis app.set(key, value) can be used to set anything in redis app.get(key) can be used to fetch the value
NOTE: data stored in redis is globally accessible across all requests. Do not store profile related info in redis
Ritwik Banerjee