https://github.com/rebilly/hello-world-app
Sample Rebilly App Store app.
https://github.com/rebilly/hello-world-app
Last synced: 9 months ago
JSON representation
Sample Rebilly App Store app.
- Host: GitHub
- URL: https://github.com/rebilly/hello-world-app
- Owner: Rebilly
- Created: 2021-12-08T07:45:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-08-19T08:56:39.000Z (10 months ago)
- Last Synced: 2025-10-10T04:33:36.413Z (9 months ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 22
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello World Application
This repository is an example Hello World application.
It has already been submitted and is available in [App Store sandbox environment](https://app-sandbox.rebilly.com/app-store).
This readme describes how to submit and configure your own version of this application.
## Structure
The application is an AWS Lambda function with two handlers:
+ `application_enabled`: handles webhooks when the app is installed.
+ `customer_created`: handles webhooks when new customers are added to users accounts in Rebilly.
When this app is installed, it provides discounts to new users.
## Configuration in Rebilly
1. [Submit an app to the Rebilly App Store](https://www.rebilly.com/docs/content/concepts-and-features/tutorial/submit-a-rebilly-app).
1. Deploy this Lambda function and receive an invocation URL.
1. In Rebilly, in the left navigation bar, click **Automations**, then click **Rules engine**.
1. Click **Core events**, and select the **Application instance enabled** event.
1. Click **Ruleset**, go to **Binds** tab, then click **Add Bind**.
1. Complete all fields.
1. In the **Actions** section, click **Add action**, and select **Trigger webhook**.
1. Add your invocation URL. Ensure that the URL is in the following format: `https://your-api-name.execute-api.your-region.amazonaws.com/Prod/application-enabled`.
1. Click **Body**, and include an organization identifier of user who installed your app, using the following format:
```json
{"organizationId": "{{organizationId}}"}
```
For more information on developing Rebilly apps, see [Rebilly App Store](https://www.rebilly.com/docs/content/concepts-and-features/app-store).
## Develop and deploy
To develop, run, and deploy your own Lambda function, follow the [AWS SAM Reference](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-reference.html).