{"id":20247740,"url":"https://github.com/trailheadapps/ebikes-manufacturing","last_synced_at":"2025-04-10T21:32:12.656Z","repository":{"id":37418082,"uuid":"205197261","full_name":"trailheadapps/ebikes-manufacturing","owner":"trailheadapps","description":"E-Bikes Manufacturing site built with LWR","archived":false,"fork":false,"pushed_at":"2025-03-01T00:06:13.000Z","size":4151,"stargazers_count":24,"open_issues_count":10,"forks_count":18,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T18:52:36.890Z","etag":null,"topics":["grpc","lwc","lwr","pubsub","salesforce"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trailheadapps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-29T15:45:24.000Z","updated_at":"2025-01-29T04:23:46.000Z","dependencies_parsed_at":"2023-02-01T06:01:06.236Z","dependency_job_id":"69766c15-eeb5-4c0d-8bd3-79b2a3f698b9","html_url":"https://github.com/trailheadapps/ebikes-manufacturing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailheadapps%2Febikes-manufacturing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailheadapps%2Febikes-manufacturing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailheadapps%2Febikes-manufacturing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trailheadapps%2Febikes-manufacturing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trailheadapps","download_url":"https://codeload.github.com/trailheadapps/ebikes-manufacturing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248301573,"owners_count":21080916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grpc","lwc","lwr","pubsub","salesforce"],"created_at":"2024-11-14T09:39:14.553Z","updated_at":"2025-04-10T21:32:12.636Z","avatar_url":"https://github.com/trailheadapps.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-Bikes Manufacturing Demo\n\nThis 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.\n\n🎥 Watch a short [introduction video](https://youtu.be/g9P87_loVVA).\n\n\u003e **Warning**\u003cbr/\u003e\n\u003e This demo app does not use the most secure authentication mechanism. We recommend using an [OAuth 2.0 JWT Bearer Flow](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_jwt_flow.htm\u0026type=5) for production environments.\n\n## Installation\n\nYou can either install the app on\n\n-   [Heroku](#heroku-deploy) (quick deployment for demo purposes)\n-   your [local machine](#local-setup) (prefered for development purposes)\n\n### Heroku deploy\n\nClick on this button and follow the instructions to deploy the app:\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://heroku.com/deploy?template=https://github.com/pozil/ebikes-manufacturing-lwc-oss\"\u003e\n    \u003cimg src=\"https://www.herokucdn.com/deploy/button.svg\" alt=\"Deploy\"\u003e\n  \u003c/a\u003e\n\u003cp\u003e\n\nOnce deployed, see the [configuration reference](#configuration-reference) section for configuring the environment variables.\n\n### Local setup\n\n1. Create a `.env` file at the root of the `ebikes-manufacturing` project\n\n    ```properties\n    SALESFORCE_AUTH_TYPE=\"user-supplied\"\n    SALESFORCE_LOGIN_URL=\"https://test.salesforce.com\"\n    SALESFORCE_API_VERSION=\"56.0\"\n    SALESFORCE_USERNAME=\"YOUR_SALESFORCE_USERNAME\"\n    SALESFORCE_PASSWORD=\"YOUR_SALESFORCE_PASSWORD\"\n    SALESFORCE_TOKEN=\"YOUR_SALESFORCE_SECURITY_TOKEN\"\n\n    PUB_SUB_ENDPOINT=\"api.pubsub.salesforce.com:7443\"\n    ```\n\n1. Update the property values by referring to the [configuration reference](#configuration-reference) section\n\n1. Install the project with `npm install`\n\n1. Run the project with `npm start`\n\n## Configuration reference\n\nAll variables are required.\n\n| Variable                 | Description                                                                                                                                                                     | Example                          |\n| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |\n| `SALESFORCE_AUTH_TYPE`   | The Salesforce authentication type for the Pub/Sub API client. Do not change this value.                                                                                        | `user-supplied`                  |\n| `SALESFORCE_LOGIN_URL`   | The login URL of your Salesforce org:\u003cbr\u003e`https://test.salesforce.com/` for scratch orgs and sandboxes\u003cbr/\u003e`https://login.salesforce.com/` for Developer Edition and production | `https://test.salesforce.com`    |\n| `SALESFORCE_API_VERSION` | The Salesforce API version.                                                                                                                                                     | `56.0`                           |\n| `SALESFORCE_USERNAME`    | Your Salesforce user's password.                                                                                                                                                | n/a                              |\n| `SALESFORCE_PASSWORD`    | Your Salesforce username.                                                                                                                                                       | n/a                              |\n| `SALESFORCE_TOKEN`       | Your Salesforce user's security token.                                                                                                                                          | n/a                              |\n| `PUB_SUB_ENDPOINT`       | The endpoint used by the Pub/Sub API.                                                                                                                                           | `api.pubsub.salesforce.com:7443` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailheadapps%2Febikes-manufacturing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrailheadapps%2Febikes-manufacturing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrailheadapps%2Febikes-manufacturing/lists"}