No description
Find a file
2025-04-09 10:09:47 +02:00
Dockerfile feat: add files 2025-04-09 10:09:13 +02:00
LICENSE Initial commit 2025-04-09 09:35:27 +02:00
README.md fix: add full option declaraction 2025-04-09 10:09:47 +02:00
server.js feat: add files 2025-04-09 10:09:13 +02:00

Simple Webhook Server

A simple server for testing webhook calls. The server responds with every request method and logs the full data sent to the server to the console.

Example request:

curl -X POST -H "Content-Type: application/json" -d '{"foo": "bar"}' http://localhost:3000

Server Console:

2025-04-09T08:07:07.151Z - POST /
Headers: {
  "host": "localhost:3000",
  "user-agent": "curl/8.5.0",
  "accept": "*/*",
  "content-type": "application/json",
  "content-length": "14"
}
Body: {
  "foo": "bar"
}

Usage

This currently supports running with node and docker

Running with node

node server.js

The server allows the following options:

  • --port, -p: The port to listen on. Default: 3000
  • --host, -h: The host to bind the server to. Default: localhost

Running with docker

docker run -p 3000:3000 git.eplg.services/obvtiger/simple-webhook-server:latest

You can change the port by modifying the first 3000 in the -p option.