{"id":20806903,"url":"https://github.com/agentgill/publish-platform-events-with-express","last_synced_at":"2025-07-14T09:37:43.300Z","repository":{"id":152507036,"uuid":"420024344","full_name":"agentgill/publish-platform-events-with-express","owner":"agentgill","description":"Simple Express Server for Publishing Salesforce Platform events","archived":false,"fork":false,"pushed_at":"2021-10-22T08:55:56.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T13:38:35.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agentgill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-22T08:35:34.000Z","updated_at":"2021-10-22T08:55:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff9989e7-ddd5-47be-8fad-91cd8e6a861f","html_url":"https://github.com/agentgill/publish-platform-events-with-express","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/agentgill%2Fpublish-platform-events-with-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fpublish-platform-events-with-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fpublish-platform-events-with-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agentgill%2Fpublish-platform-events-with-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agentgill","download_url":"https://codeload.github.com/agentgill/publish-platform-events-with-express/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243152875,"owners_count":20244657,"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":[],"created_at":"2024-11-17T19:28:35.208Z","updated_at":"2025-03-12T03:43:39.567Z","avatar_url":"https://github.com/agentgill.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Express Server for Publishing Salesforce platform events\n\nSuper Simple example of using Express with Salesforce Platform Events!\n\n## Get Started\n\n1. Clone the repo `gh repo clone agentgill/publish-platform-events-with-express`\n2. Run `npm i` to install node dependencies\n3. Create .env file and add your Salesforce login detils\n4. Update line 42 in app.js `.sobject('RateRequest__e')` to be your own Platform Event object\n5. Run `node app.js` or `npx nodemon app.js` to start your local server\n6. Install VSCode Extension **Thunder Client** or download Postman\n7. Post some JSON to the endpoint and watch it magically appear in your Salesforce Platform Event\n8. Install Streaming Monitor in Salesforce to easily view Platform Events you post\n\n\n## Example .env file\n\n```env\nusername=mysalesforceuser@salesforce.com\npassword=mypassword\n```\n\n## Example Rest POST\n\n```rest\nPOST https://localhost:3000 HTTP/1.1\ncontent-type: application/json\n\n{\n    \"Hello\": \"World\",\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Fpublish-platform-events-with-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagentgill%2Fpublish-platform-events-with-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagentgill%2Fpublish-platform-events-with-express/lists"}