<<<<<<< HEAD
A Django application that handles Shopify webhooks for order creation and displays order information.
- Receives Shopify webhooks for order creation
- Stores order information in a database
- Displays orders in a web interface
- Secure webhook validation
- Clone the repository:
git clone https://github.com/masif-coder/shopify-webhook-django.git
cd shopify-webhook-django
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables (copy .env.example to .env and fill in your values):
cp .env.example .env
- Run migrations:
python manage.py migrate
- Run the development server:
python manage.py runserver
Create a .env
file with the following variables:
DJANGO_SECRET_KEY=your-secret-key
DJANGO_DEBUG=False
ALLOWED_HOSTS=your-domain.railway.app
SHOPIFY_SHOP_DOMAIN=your-store.myshopify.com
SHOPIFY_ACCESS_TOKEN=your-access-token
SHOPIFY_WEBHOOK_SECRET=your-webhook-secret
This application is configured for deployment on Railway:
- Connect your GitHub repository to Railway
- Set up the environment variables in Railway's dashboard
- Railway will automatically deploy your application
After deployment, your webhook URL will be:
https://your-domain.railway.app/webhooks/orders/create/
- The application validates Shopify webhook signatures
- Environment variables are used for sensitive information
- HTTPS is required for webhook endpoints =======
3dee018ecf7f8c86f08d981b4660f495a6c5177d