How pedrokawa19/senior_design_7 works
This repository contains an internal Django dashboard for reporting on Vision Metals data, alongside standalone analysis scripts and SQL. Its principal workflow is an authenticated user configuring a client MySQL connection, then requesting profitability or purchase/sales history reports through JSON endpoints; market-index performance is a separate reporting capability. The graph captures routing, authentication, report services, and external data sources. Several service and page implementations were not sampled, so their internal wiring is not inferred.
Main entry points: api.py JSON endpoints · urls.py Dashboard routes · pages.py Page views · auth.py Account views
Components 19
Dashboard web
- Root routes
web-django/config/urls.py - Dashboard routes
web-django/dashboard/urls.py - Page views
web-django/dashboard/views/pages.py - JSON endpoints
web-django/dashboard/views/api.py - Dashboard page
web-django/templates/dashboard.html - History pages
web-django/templates/history.html - Profile page
web-django/templates/profile.html
Access and settings
- Account views
web-django/dashboard/views/auth.py - Input forms
web-django/dashboard/forms.py - Credential handling
web-django/dashboard/credentials.py - Connection settings
web-django/dashboard/services/connections.py - Auth and sessions
web-django/config/settings.py
Reporting services
- Read-only DB access
web-django/dashboard/services/database.py - Order history
web-django/dashboard/services/history.py - Profitability reports
web-django/dashboard/services/profitability.py - Index performance
web-django/dashboard/services/market.py
Data sources
- Client MySQL
- Market data provider
Other components
- Dashboard user
Connections 21
- Dashboard user → Root routes: opens
- Root routes → Dashboard routes: includes
- Dashboard routes → Account views: routes
- Dashboard routes → Page views: routes
- Dashboard routes → JSON endpoints: routes
- Account views → Input forms: validates signup
- Account views → Auth and sessions: uses auth
- JSON endpoints → Auth and sessions: checks auth
- JSON endpoints → Input forms: validates settings
- JSON endpoints → Connection settings: manages settings
- JSON endpoints → Credential handling: reveals saved password
- JSON endpoints → Read-only DB access: verifies connection
- JSON endpoints → Order history: requests history
- JSON endpoints → Profitability reports: requests profitability
- JSON endpoints → Index performance: requests index data
- Page views → Dashboard page: renders
- Page views → History pages: renders
- Page views → Profile page: renders
- Order history → Read-only DB access: opens connection
- Read-only DB access → Client MySQL: queries read-only
- Index performance → Market data provider: fetches prices