Git Product home page Git Product logo

purealoe-distributor's Introduction

Pure Aloe Distributor App

The Pure Aloe Distributor App is written in Node.js and built to run on Heroku. It is a companion to the Pure Aloe app, built on Salesforce. Using the two apps, you can explore how to integrate decoupled applications with Salesforce via Platform Events.

Installation Instructions

In the commands below, terms wrapped in *asterisks* signify places where you'll need to replace the dummy text we're providing with values that match your Salesforce DX or Salesforce org setup.

  1. Install the Pure Aloe Salesforce application first. See instructions here: https://github.com/trailheadapps/purealoe

  2. In Setup > Users, create an integration user that you will use to connect to Salesforce from the Node.js app. Select Salesforce as the license type and System Administrator as the profile.

  3. Log in (at least once) as that user via your browser. For scratch orgs, use https://test.salesforce.com as the login URL. For Develper Edition orgs, use https://login.salesforce.com. Choose to not register your phone number.

  4. In Setup > Users > Permission Sets, assign your integration user to the purealoe permission set.

  5. Create a Connected App in a Developer Edition org (do not use your scratch org).

  6. Clone this repository:

    git clone https://github.com/trailheadapps/purealoe-distributor
    cd purealoe-distributor
    
  7. Create a Heroku app and give it a name:

    heroku create *your_app_name*
    
  8. Set the Heroku config variables (replace with values from your connected app):

    heroku config:set SF_CLIENT_ID=*your_connected_client_id*
    heroku config:set SF_CLIENT_SECRET=*your_connected_client_secret*
    heroku config:set SF_USER_NAME=*your_integration_user_name*
    heroku config:set SF_USER_PASSWORD=*your_integration_user_password*
    heroku config:set SF_ENVIRONMENT=*your_env_type*

    Set SF_ENVIRONMENT to sandbox if using a scratch org, or production if using a Developer Edition.

  9. Push the code to your Heroku app:

    git push heroku master
    

    or run the application locally:

    heroku run:local npm start
    

Note: If you're using a scratch org for this integration, keep in mind that you'll need to repeat the above steps and re-set your Heroku app's config variables when your scratch org expires.

purealoe-distributor's People

Contributors

ccoenraets avatar muenzpraeger avatar zaynelt avatar

Watchers

 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.