Cloudrail - Setup



Register a CloudRail app

Use this link to create a new app (you may have to login first) − https://developers.cloudrail.com You can find your CloudRail license key in the app summary.

Register a Facebook app

Use this link to create a new app (you may have to login first) − https://developers.facebook.com/apps/. Then click the 'Add a New App' button, choose 'Basic setup' and create a new app. In the dashboard section you find your App Key (Client ID) and App Secret (Client Secret).

Go to 'Add Product' and select 'Facebook Login'. Set the Redirect URI to 'http://localhost:12345/auth/redirect/facebook'.

Register a Twitter app

Use this link to create a new app (you may have to login first) − https://apps.twitter.com/ Click the 'Create New App' button and fill in the required details. Click on 'Keys and Access Tokens' and you'll find your App Key (Client ID) and App Secret (Client Secret). Set the Redirect URI to 'http://localhost:12345/auth/redirect/twitter'.

Initialize a new Node.js project

Make sure you have Node.js installed, create a new folder, initialize the package.json and install Express and CloudRail by issuing the following commands in the console (or the equivalent commands on non-Unix OSs) −

mkdir myProject
cd myProject
npm init
npm i --save express cloudrail-si
Advertisements