A Flask application that receives and processes GitHub webhook events, storing them in MongoDB.
- Python 3.9+
- MongoDB 8.0+
- Git
python3 -m venv webhook-repo
source webhook-repo/bin/activatepip install -r requirements.txtCreate a .env file in the root directory with the following variables:
# MongoDB Connection String
# Format: mongodb://username:password@host:port/database
MONGO_URI=your_mongo_uri
# GitHub Webhook Secret
# This is the secret key configured in your GitHub webhook settings
GITHUB_SECRET=your_github_webhook_secretWith your virtual environment activated:
python run.py