The Webhook Test Server is designed to handle and simulate webhook events for various services using Go and DynamoDB. This project includes functionality for receiving webhook payloads, validating them, and storing the information in DynamoDB, making it ideal for testing and developing applications that rely on webhook data.
Webhook Event Handling
: Processes and responds to incoming webhook events.Data Validation and Storage
: Validates incoming data and stores it in DynamoDB.Health Checks
: Provides endpoints for readiness and liveliness checks of the service.
- Go (version 1.14 or later recommended)
- AWS account with DynamoDB
- Configure AWS credentials (AWS CLI or environment variables)
-
Clone the repository:
git clone repo_link.git
-
Navigate to the project directory:
cd root_dir
Create a .env
file in the project root directory and provide the necessary environment variables:
DYNAMODB_REGION=
DYNAMODB_ORDER_TABLE_NAME=
SERVER_PORT=8080
DYNAMODB_ENDPOINT=
To start the server, run:
go run .
To execute tests, use:
go test ./...