How 24f1001603/trekking_management_portal works
Trekky is a role-based trekking management portal. Users browse open treks or register and sign in; trekkers can book and manage bookings, while admin and staff workflows handle approvals, assignments, users, and trek progress. Route modules implement these workflows against shared SQLAlchemy models, and Flask renders role-specific pages. The README documents SQLite as the database. Admin capabilities are included as documented, though the admin source excerpt is partial; connections not shown in source are cited to the README or omitted.
Main entry points: app.py Flask application · model.py User, trek, booking models · templates Jinja pages · auth.py Authentication
Components 10
Application entry
- Flask application
app.py
Access and discovery
- Authentication
routes/auth.py - Public trek discovery
routes/main.py
Trek operations
- Admin operations
routes/admin.py - Staff operations
routes/staff.py - Trekker bookings
routes/trekker.py
Persistence and views
- User, trek, booking models
model/model.py - SQLite database
- Jinja pages
templates
Other components
- Client browser
Connections 18
- Client browser → Flask application: sends requests
README.md - Flask application → Authentication: registers blueprint
app.py - Flask application → Public trek discovery: registers blueprint
app.py - Flask application → Admin operations: registers blueprint
app.py - Flask application → Staff operations: registers blueprint
app.py - Flask application → Trekker bookings: registers blueprint
app.py - Flask application → User, trek, booking models: initializes ORM
app.py - Authentication → User, trek, booking models: checks and stores users
routes/auth.py - Public trek discovery → User, trek, booking models: queries treks
routes/main.py - Admin operations → User, trek, booking models: manages users and treks
routes/admin.py - Staff operations → User, trek, booking models: reads and updates records
routes/staff.py - Trekker bookings → User, trek, booking models: books and updates profile
routes/trekker.py - Flask application → SQLite database: uses SQLite
README.md - Authentication → Jinja pages: renders auth pages
routes/auth.py - Public trek discovery → Jinja pages: renders public pages
routes/main.py - Admin operations → Jinja pages: renders admin pages
README.md - Staff operations → Jinja pages: renders staff pages
routes/staff.py - Trekker bookings → Jinja pages: renders trekker pages
routes/trekker.py