How garv-arora/mdlz_cil_tracker_webapp works
Project type and purpose
• This is a small full-stack web application (“CIL Tracker”) built with Python/Flask, using server-side templating for the UI, an SQLite database for storage, and static assets (CSS/JS/images). It is intended for deployment behind a production web server or reverse proxy and optionally containerized via Docker.
File structure
• Top-level files:
• Dockerfile – container build instructions
• render.yaml – deployment manifest (likely for a PaaS or container orchestrator)
• app.py – Flask application entry point
• database.py – database setup and cleanup logic
• requirements.txt – Python dependencies
• instance/ – holds the SQLite database file (cil_tracker.db)
• templates/ – Jinja2 HTML templates (index.html, etc.)
• static/ – static assets (css/style.css, js/main.js, images/)
• README.md – describes features, deployment steps, configuration, and security considerations.
README for additional insights
• The application tracks cleaning/inspection/lubrication sessions, logs start/stop times, enforces 30-day retention, and supports export to CSV/Excel.
• It can run with the built-in Waitress server or Gunicorn, reads configuration from environment variables (host, port, DB path, Flask environment), and is designed to be placed behind Nginx/Apache with HTTPS.