Giter VIP home page Giter VIP logo

ebikes-manufacturing's Introduction

E-Bikes Manufacturing Demo

This demo is built with the Lightning Web Runtime and demonstrates the use of the Pub/Sub API with Change Data Capture events and Platform Events.

๐ŸŽฅ Watch a short introduction video.

Warning
This demo app does not use the most secure authentication mechanism. We recommend using an OAuth 2.0 JWT Bearer Flow for production environments.

Installation

You can either install the app on

  • Heroku (quick deployment for demo purposes)
  • your local machine (prefered for development purposes)

Heroku deploy

Click on this button and follow the instructions to deploy the app:

Deploy

Once deployed, see the configuration reference section for configuring the environment variables.

Local setup

  1. Create a .env file at the root of the project:

    SALESFORCE_AUTH_TYPE="user-supplied"
    SALESFORCE_LOGIN_URL="https://test.salesforce.com"
    SALESFORCE_API_VERSION="56.0"
    SALESFORCE_USERNAME="YOUR_SALESFORCE_USERNAME"
    SALESFORCE_PASSWORD="YOUR_SALESFORCE_PASSWORD"
    SALESFORCE_TOKEN="YOUR_SALESFORCE_SECURITY_TOKEN"
    
    PUB_SUB_ENDPOINT="api.pubsub.salesforce.com:7443"
  2. Update the property values by referring to the configuration reference section

  3. Install the project with npm install

  4. Run the project with npm start

Configuration reference

All variables are required.

Variable Description Example
SALESFORCE_AUTH_TYPE The Salesforce authentication type for the Pub/Sub API client. Do not change this value. user-supplied
SALESFORCE_LOGIN_URL The login URL of your Salesforce org:
https://test.salesforce.com/ for scratch orgs and sandboxes
https://login.salesforce.com/ for Developer Edition and production
https://test.salesforce.com
SALESFORCE_API_VERSION The Salesforce API version. 56.0
SALESFORCE_USERNAME Your Salesforce user's password. n/a
SALESFORCE_PASSWORD Your Salesforce username. n/a
SALESFORCE_TOKEN Your Salesforce user's security token. n/a
PUB_SUB_ENDPOINT The endpoint used by the Pub/Sub API. api.pubsub.salesforce.com:7443

ebikes-manufacturing's People

Contributors

dependabot[bot] avatar pozil 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.