How 19992006k-create/petshop works
The repository presents two overlapping versions of the product: the README describes a static pet-shop site, while the sampled Flask runtime serves a database-backed section listing and feedback form. The graph preserves the documented shop pages and catalog behavior, alongside the server workflow actually shown in source. Backend relationships are supported by excerpts; links between the static pages and catalog script are not shown, so they are omitted. The other README capabilities are documented but their templates were not sampled.
Main entry points: routes.py Page and form routes · _init_.py App configuration · passenger_wsgi.py Hosting entry point · models.py Section model
Components 15
Shop pages
- Home page
app/templates/index.html - Catalog pages
app/templates - Product page
app/templates/product.html - Info and services
app/templates - About and contacts
app/templates - Not found page
app/templates/404.html
Catalog interaction
- Catalog controls
js/catalog.js
Flask application
- App configuration
app/_init_.py - Page and form routes
app/routes.py - Feedback validation
app/validators.py - Hosting entry point
passenger_wsgi.py
Application data
- Section model
app/models.py - Feedback model
app/models.py - Configured database
Other components
- Visitor
Connections 17
- Visitor → Home page: views
README.md - Visitor → Catalog pages: browses
README.md - Visitor → Product page: views
README.md - Visitor → Info and services: views
README.md - Visitor → About and contacts: views
README.md - Visitor → Not found page: may reach
README.md - Catalog controls → Catalog pages: renders controls
- Hosting entry point → App configuration: creates app
passenger_wsgi.py - Hosting entry point → Configured database: creates tables
passenger_wsgi.py - App configuration → Page and form routes: registers routes
app/_init_.py - App configuration → Configured database: configures database
app/_init_.py - Page and form routes → Section model: queries sections
app/routes.py - Page and form routes → Home page: renders
app/routes.py - Page and form routes → Feedback validation: validates input
app/routes.py - Page and form routes → Feedback model: creates feedback
app/routes.py - Section model → Configured database: stored in
- Feedback model → Configured database: stored in