A static web application for uploading and processing Purchase Order PDFs via a backend API.
index.html- Main upload interface with drag-and-drop functionalityresults.html- Results page showing processing stats and download optionslogo.jpg- Company logocloudflare-deployment.md- Deployment guide for Cloudflare Pages
- Drag & Drop Upload: Intuitive file upload interface
- API Configuration: Dynamic backend URL configuration
- Real-time Status: Live connection status to backend API
- Progress Tracking: Visual progress indicators during processing
- Download Management: Direct download of CSV files and ZIP archives
- Mobile Responsive: Works on all device sizes
- Open
index.htmlin your browser - Configure the backend API URL to your local Flask server
- Test file uploads and processing
See cloudflare-deployment.md for detailed deployment instructions.
The frontend connects to your Railway-deployed backend API. Update the default API URL in index.html:
// Update this line with your Railway backend URL
const defaultApiUrl = 'https://your-railway-app.railway.app';- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
The frontend communicates with the backend through these endpoints:
GET /health- Check backend statusPOST /api/upload- Upload and process PDF filesGET /api/download/<session_id>- Download ZIP of all resultsGET /api/download_main/<session_id>- Download main CSV file