How anas348/research-opportunity-portal works
The Research Opportunity Portal is a Flask/MySQL CRUD application with a static JavaScript frontend. Faculty use the browser UI to browse, search, and filter opportunities, inspect details, and create, edit, change status, or delete records; the frontend sends requests to the Flask API, which validates and persists them. The graph groups UI behavior, API handling, and persistence. Source excerpts show the frontend request flow and backend database calls; HTML/CSS presentation details and schema contents were not sampled.
Main entry points: app.js Opportunity portal UI · app.py Opportunity CRUD API · db.py MySQL connection helper · schema.sql Opportunity schema
Components 13
Browser interface
- Opportunity portal UI
frontend/app.js - Browse and filter
frontend/app.js - Opportunity details
frontend/app.js - Create and edit form
frontend/app.js - Status and deletion
frontend/app.js - API request client
frontend/app.js
API and rules
- Opportunity CRUD API
backend/app.py - Payload validation
backend/app.py
Persistence
- MySQL connection helper
backend/db.py - MySQL opportunity store
- Opportunity schema
db/schema.sql
Other components
- Faculty user
- Browser
Connections 15
- Faculty user → Browser: uses
README.md - Browser → Opportunity portal UI: opens
README.md - Opportunity portal UI → Browse and filter: provides
frontend/app.js - Opportunity portal UI → Opportunity details: opens
frontend/app.js - Opportunity portal UI → Create and edit form: submits
frontend/app.js - Opportunity portal UI → Status and deletion: manages
frontend/app.js - Browse and filter → API request client: loads data
frontend/app.js - Create and edit form → API request client: sends changes
frontend/app.js - Status and deletion → API request client: sends changes
frontend/app.js - API request client → Opportunity CRUD API: HTTP requests
README.md - Opportunity CRUD API → Payload validation: validates
backend/app.py - Opportunity CRUD API → MySQL connection helper: gets connection
backend/app.py - MySQL connection helper → MySQL opportunity store: connects
backend/db.py - Opportunity CRUD API → MySQL opportunity store: reads and writes
backend/app.py - Opportunity schema → MySQL opportunity store: defines setup
README.md