How mindy12-ux/web-project works
Web-project is a Flask website for sharing vacant-house information. Visitors explore vacant houses by region, inspect nearby shops, and can register, sign in, and save houses; activity feeds public trends and scoped official dashboards, while administrators manage roles and official invitations. The graph includes the documented route modules and the MariaDB access layer. Source excerpts show selected route behavior; links to database access are supported by the SOURCE INDEX, while unsampled UI and route details are not expanded.
Main entry points: app.py Flask app · db.py DB access · houses.py House map and APIs · auth.py Authentication
Components 15
Web entry
- Flask app
backend/app.py - DB access
backend/db.py - Response helpers
backend/routes/common.py - Home page
backend/routes/main.py
House discovery
- House map and APIs
backend/routes/houses.py - Store routes
backend/routes/stores.py - Contractor routes
backend/routes/contractors.py
Accounts and saves
- Authentication
backend/routes/auth.py - Profile and saved houses
backend/routes/mypage.py - Roles and invitations
backend/routes/manage.py
Trends and administration
- Activity logging
backend/routes/events.py - Public trends
backend/routes/trends.py - Official statistics
backend/routes/admin.py
Other components
- Visitor
- MariaDB
Connections 27
- Visitor → Flask app: requests pages
backend/app.py - Flask app → Authentication: registers blueprint
backend/app.py - Flask app → Profile and saved houses: registers blueprint
backend/app.py - Flask app → Home page: registers blueprint
backend/app.py - Flask app → House map and APIs: registers blueprint
backend/app.py - Flask app → Store routes: registers blueprint
backend/app.py - Flask app → Contractor routes: registers blueprint
backend/app.py - Flask app → Activity logging: registers blueprint
backend/app.py - Flask app → Public trends: registers blueprint
backend/app.py - Flask app → Official statistics: registers blueprint
backend/app.py - Flask app → Roles and invitations: registers blueprint
backend/app.py - Home page → Public trends: gets popular regions
backend/routes/main.py - House map and APIs → Activity logging: logs house views
backend/routes/houses.py - House map and APIs → Response helpers: formats responses
backend/routes/houses.py - Profile and saved houses → Authentication: uses login checks
backend/routes/mypage.py - Roles and invitations → Authentication: uses auth checks
backend/routes/manage.py - Official statistics → Public trends: redirects dashboard
backend/routes/admin.py - House map and APIs → DB access: queries data
backend/routes/houses.py - Authentication → DB access: queries accounts
backend/routes/auth.py - Profile and saved houses → DB access: reads and writes
backend/routes/mypage.py - Activity logging → DB access: writes activity
backend/routes/events.py - Public trends → DB access: queries aggregates
backend/routes/trends.py - Official statistics → DB access: queries statistics
backend/routes/admin.py - Roles and invitations → DB access: manages account data
backend/routes/manage.py - Store routes → DB access: queries data
backend/routes/stores.py - Contractor routes → DB access: queries data
backend/routes/contractors.py - DB access → MariaDB: opens connection
backend/db.py