How snelat05/projet_7030_api works
Ananda Marga is a Flask website for presenting the organization and its events, with volunteer enrollment and administration. Visitors browse public pages or submit volunteer details; administrators manage volunteer records and accounts, with login and password-recovery flows. The sampled code shows Flask routes coordinating validation, database operations, templates, and email delivery. The README documents the presentation and event capabilities; some route and template wiring is only partially excerpted, so those connections are limited to visible references.
Main entry points: app.py Flask routes · database.py Database access · formbenevol.html Volunteer form · script.js Volunteer search
Components 15
Web experience
- Flask routes
app.py - Public pages
templates/html/pages - API documentation
templates/document.html
Volunteer management
- Volunteer form
templates/html/pages/formbenevol.html - Volunteer API
app.py - Volunteer search
static/bootstrap/script.js - Volunteer model
benevol.py
Administration
- Admin account flows
app.py - Admin pages
templates/html/pages - SMTP service
Data and validation
- Volunteer schemas
schema.py - Database access
database.py - SQLite database
db/db.db
Other components
- Visitor
- Administrator
Connections 16
- Visitor → Flask routes: requests pages
app.py - Flask routes → Public pages: renders pages
app.py - Flask routes → API documentation: renders docs
app.py - Visitor → Volunteer form: submits details
- Volunteer form → Flask routes: posts details
- Flask routes → Volunteer API: routes requests
app.py - Volunteer API → Volunteer schemas: validates payload
app.py - Volunteer API → Database access: searches records
app.py - Database access → Volunteer model: creates records
database.py - Database access → SQLite database: reads and writes
database.py - Volunteer search → Volunteer API: fetches results
static/bootstrap/script.js - Administrator → Admin account flows: manages accounts
- Flask routes → Admin account flows: routes admin flows
app.py - Admin account flows → Database access: manages accounts
database.py - Admin account flows → Admin pages: renders forms
app.py - Admin account flows → SMTP service: sends recovery email
app.py