Git Product home page Git Product logo

salesforce-react's Introduction

salesforce-react

This is a React app with nodejs that interfaces with Algolia and Salesforce

Setup

Set up SFDC

  1. Create the Connected App (Setup > App Manager > New Connected App)
  2. Add the callback URL from ngrok
  3. Store the consumer key and secret so that we can use jsforce to connect to salesforce

Screen Shot 2021-11-08 at 8 11 25 AM

  1. Install nodejs https://nodejs.org/en/
  2. In the root folder of this project, create a .env file and put the following in it
REACT_APP_SALESFORCE_CLIENT_ID = "[your Client ID from the connected app]"
REACT_APP_SALESFORCE_SECRET = "[Your secret from the connected app]"
REACT_APP_SALESFORCE_INSTANCE_URL = "[SFDC Instance]"
REACT_APP_SALESFORCE_USERNAME = "[Your SFDC username]"
REACT_APP_SALESFORCE_PASSWORD = "[Your SFDC password] + [Your Security Key]"
REACT_APP_ALGOLIA_APP_ID = "[Your Algolia API ID]"
REACT_APP_ALGOLIA_API_KEY = "[Your Aloglia API Key that has access to your index]"
REACT_APP_ALGOLIA_SEARCH_API_KEY = "[Your Algolia Search API Key]"
  1. Then save the file
  2. To init the app, run this in the command line
npm install

There is already a package.json that should install all of the dependencies 8. Once that's going, have 2 tabs in the command line. The first one is the server (Express) 9. Run the following

node server.js
  1. The second is React (Client)
npm start

That should have both server and client running on your localhost

salesforce-react's People

Contributors

peterdj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.