This app use Node.js, ReactJS, and Salesforce technology to display organizational limitation in Salesforce CRM. Node.js builds the backend, while ReactJS creates the user interface for viewing limitation.
This project drew inspiration from Philippe Ozil work.
- using JSforce as a Salesforce client
- authenticating with OAuth 2.0 (login, logout, retrieving session info)
- using the Lightning Design System (LDS) in a React application (all the CSS and icons of this app are provided by LDS)
The source code of this app is structured in the following way:
clientdirectory holds the React app
serverdirectory holds the node.js app that acts as a middleware with the Salesforce Platform
Create a Connected App in Salesforce.
.envfile in the root directory of this project and add this content (make sure to replace the values):
loginUrl='https://login.salesforce.com' callbackUrl='http://localhost:3002/auth/callback' consumerKey='YOUR_CLIENT_KEY' consumerSecret='YOUR_CLIENT_SECRET' apiVersion='55.0' isHttps='false' sessionSecretKey='A_SECRET_STRING'
npm installto install the dependency package.
npm run devto start the app.