✅ GitHub: https://github.com/YOUR_USERNAME/ticket-printer-app
Site name: (choose any name, e.g., ticket-printer-app)
Build settings:
- Base directory: (leave blank)
- Build command:
echo "No build required" - Publish directory:
frontend
Environment variables: (optional for now)
- Can add later if needed
Your Netlify site will be live at:
https://YOUR-SITE-NAME.netlify.app
The ngrok tunnel must be running on your Raspberry Pi:
# Should show the tunnel is active
ngrok http 5000Your URL: https://your-ngrok-url.ngrok-free.dev
- Replace with your actual ngrok URL
Your Flask app should be running:
python3 app.pyOr if you've set it up as a service:
sudo systemctl status ticket-printerOnce deployed to Netlify:
- Visit your Netlify URL
- Fill out the form
- Submit a ticket
- Check your Raspberry Pi printer - it should print!
Test your backend API directly:
curl https://your-ngrok-url.ngrok-free.dev/health- Replace with your actual ngrok URL
Should return:
{"status": "healthy", "printer_connected": true}- Check ngrok is running:
ngrok http 5000 - Verify API URL in frontend/index.html (line 196)
- Check CORS is enabled in app.py
- Check Flask app is running:
python3 app.py - Verify printer is connected:
sudo lsusb - Check permissions:
sudo usermod -a -G lp,dialout pi
- Make sure you're deploying the
frontend/folder - Check build settings match the instructions
- Review Netlify deploy logs for errors