https://github.com/alphasecio/webhook-client-server
A sample webhook server using Node.js and Express, paired with a webhook client using Streamlit.
https://github.com/alphasecio/webhook-client-server
express node node-js nodejs streamlit webhook webhooks
Last synced: 12 months ago
JSON representation
A sample webhook server using Node.js and Express, paired with a webhook client using Streamlit.
- Host: GitHub
- URL: https://github.com/alphasecio/webhook-client-server
- Owner: alphasecio
- License: mit
- Created: 2023-02-26T16:03:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-03T06:59:39.000Z (about 1 year ago)
- Last Synced: 2025-06-13T10:06:48.444Z (about 1 year ago)
- Topics: express, node, node-js, nodejs, streamlit, webhook, webhooks
- Language: JavaScript
- Homepage: https://go.alphasec.io/webhooks
- Size: 21.5 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Webhook App (Client + Server)
This monorepo contains:
- **Client (Streamlit):** A simple webhook client to test POST requests.
- **Server (Express):** A Node.js webhook server that logs and responds to incoming requests.
### ⏩ Quick Start - Server
```bash
cd server
npm install
npm start
```
### ⏩ Quick Start - Client
```bash
cd client
pip install -r requirements.txt
streamlit run app.py
```
### ⏩ Usage
* Start the Node.js server on port `3000`, and verify it is listening to incoming requests.
* Launch the Streamlit client and send JSON payloads to
* http://localhost:3000/webhook-1
* http://localhost:3000/webhook-2
* The server logs headers & body and responds with JSON confirmation.
### 🚀 Deploying to Railway
For a detailed guide to webhook servers, see [this](https://alphasec.io/getting-started-with-webhooks-part-1-webhook-servers/) post. For a guide to webhook clients, see [this](https://alphasec.io/getting-started-with-webhooks-part-2-webhook-clients/) post.
To deploy on [Railway](https://railway.app/?referralCode=alphasec) using a one-click template, click the button below.
[](https://railway.app/new/template/WJuLbj?referralCode=alphasec)