GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pozil/salesforce-react-integration: Sample integration project between Salesforce and a React.js application

BranchesTags
Open more actions menu

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
public
public
 
 
screenshots
screenshots
 
 
server
server
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
LICENSE.txt
LICENSE.txt
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
eslint.config.js
eslint.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Salesforce React integration

About

Sample integration project between Salesforce and a React application.

This app demonstrates the following concepts:

  • using JSforce as a Salesforce client
    • authenticating with OAuth 2.0 (login, logout, retrieving session info)
    • using the REST API to run a SOQL query
  • 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:

  • the client directory holds the React app
  • the server directory holds the node.js app that acts as a middleware with the Salesforce Platform

If you are building a React app with LDS, consider using the React LDS base components.

Installation

  1. Create a Connected App in Salesforce.

  2. Create a .env file 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:8080/auth/callback'
    consumerKey='YOUR_CLIENT_KEY'
    consumerSecret='YOUR_CLIENT_SECRET'
    apiVersion='64.0'
    
    isHttps='false'
    sessionSecretKey='A_SECRET_STRING'
    
  3. Run npm run build to build the app.

  4. Run npm start to start the app.

Screenshots

Login screen Main screen

About

Sample integration project between Salesforce and a React.js application

Resources

Readme
Apache-2.0 license
Activity

Stars

77 stars

Watchers

8 watching

Forks

65 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.