Skip to content

Commit d58fcc7

Browse files
authored
update blueprint branch and add prereqs to readme (#5)
* update blueprint branch and add prereqs to readme * fix env var in blueprint
1 parent c9b2db6 commit d58fcc7

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,30 @@
33
This basic example receives webhooks and logs the payload.
44
It will fetch service, Postgres, or Key Value store information from the RENDER API for certain webhook types.
55

6+
## Prerequisites
7+
If you haven't already, [sign up for a Render account](https://dashboard.render.com/register).
8+
Creating webhooks on Render requires a Professional plan or higher. You can [view and upgrade your plan](https://dashboard.render.com/billing/update-plan) in the Render Dashboard.
9+
610
## Deploy to Render
711

812
1. Use the button below to deploy to Render </br>
9-
<a href="https://render.com/deploy?repo=https://github.com/render-examples/twingate-example/tree/main"><img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render"></a>
13+
<a href="https://render.com/deploy?repo=https://github.com/render-examples/webhook-receiver/tree/main"><img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render"></a>
1014

1115
2. Follow [instructions](https://render.com/docs/webhooks) to create a webhook with the URL from your service and `/webhook` path
1216
3. Follow [instructions](https://render.com/docs/api#1-create-an-api-key) to create a Render API Key
1317
4. Set `RENDER_WEBHOOK_SECRET` environment variable to the secret from the webhook created in step 2. SET `RENDER_API_KEY` to the key created in step 3.
1418
5. Trigger a service deploy and watch the webhooks roll in.
19+
20+
## Developing
21+
22+
Once you've created a project and installed dependencies with `pnpm install`, start a development server:
23+
24+
```bash
25+
pnpm run dev
26+
```
27+
28+
## Building
29+
30+
```bash
31+
pnpm run build
32+
```

render.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ services:
33
name: webhook-receiver
44
runtime: node
55
repo: https://github.com/render-examples/webhook-receiver
6-
branch: create-webhook-receiver
6+
branch: main
77
plan: starter
88
envVars:
9-
- key: RENDER_API_TOKEN
9+
- key: RENDER_API_KEY
1010
sync: false
1111
- key: RENDER_WEBHOOK_SECRET
1212
sync: false

0 commit comments

Comments
 (0)