How batistedecat/test-app-project works
A small Flask cycling-route shop: visitors browse and inspect routes, sign in, add routes to a session cart, complete simulated checkout, then view and download purchased GPX files; admins inspect orders and sales. The graph also preserves route seeding and GPX difficulty calculation. Calls between the app, route handlers, database layer, and GPX utilities are shown from excerpts; the templates and schema are documented capabilities, but their individual wiring is not fully sampled.
Main entry points: routes.py Page handlers · seed.py Demo data seeding · app.py Flask app · gpx_utils.py GPX processing
Components 17
Web application
- Flask app
app.py - Page handlers
routes.py - Page templates
templates
Route commerce
- Route browsing
routes.py - Username login
routes.py - Cart and checkout
routes.py - Owned routes
routes.py - GPX downloads
routes.py - Admin sales
routes.py
Route data
- GPX route files
gpx - GPX processing
gpx_utils.py - Route metrics
gpx_utils.py - Demo data seeding
seed.py
Persistence
- Shop database
db.py - Shop schema
schema.sql
Other components
- Cycling customer
- Shop admin
Connections 18
- Cycling customer → Flask app: sends requests
README.md - Shop admin → Flask app: sends requests
README.md - Flask app → Page handlers: registers routes
app.py - Page handlers → Shop database: queries
routes.py - Page handlers → GPX processing: calls
routes.py - Page handlers → GPX route files: reads and serves
routes.py - Page handlers → Page templates: renders
README.md - Page handlers → Route browsing: dispatches
routes.py - Page handlers → Username login: dispatches
routes.py - Page handlers → Cart and checkout: dispatches
routes.py - Page handlers → Owned routes: dispatches
routes.py - Page handlers → GPX downloads: dispatches
routes.py - Page handlers → Admin sales: dispatches
routes.py - GPX processing → Route metrics: computes
gpx_utils.py - Demo data seeding → GPX route files: writes
seed.py - Demo data seeding → GPX processing: calls
seed.py - Demo data seeding → Shop schema: executes
seed.py - Demo data seeding → Shop database: populates