How sagar-bharadwaj/autocare works
AutoCare is a Flask/MySQL vehicle service-centre management and analytics application. Users sign in, access the dashboard or management pages, and use authenticated API routes to read or change customer, vehicle, appointment, staff, service, work-order, inventory, supplier, invoice, and history data. Analytics routes query operational tables and database views for dashboard metrics. The README also documents database capabilities implemented in SQL scripts. Connections reflect shown route calls, SQL references, and documented setup; unsampled templates and SQL internals are represented only at the subsystem level.
Main entry points: app.py Flask application · auth.py Authentication · api.py Resource and history API · analytics.py Analytics endpoints
Components 19
Web application
- Flask application
app.py - Application config
config.py - Page templates
templates
Product features
- Authentication
routes/auth.py - Dashboard pages
routes/dashboard.py - Management interface
static/js/management.js - Analytics dashboard UI
static/js/dashboard.js - Resource and history API
routes/api.py - Analytics endpoints
routes/analytics.py
Database access
- Database access
services/database.py - MySQL database
Database capabilities
- Relational schema
database/schema.sql - Reporting and status views
database/views.sql - Stored procedures
database/procedures.sql - Database triggers
database/triggers.sql - Transaction examples
database/transactions.sql - Database indexes
database/indexes.sql - Demonstration data
database/seed.sql
Other components
- User
Connections 26
- User → Authentication: signs in
routes/auth.py - User → Dashboard pages: opens pages
routes/dashboard.py - Flask application → Application config: loads config
app.py - Flask application → Authentication: registers
app.py - Flask application → Dashboard pages: registers
app.py - Flask application → Analytics endpoints: registers
app.py - Flask application → Resource and history API: registers
app.py - Authentication → Database access: reads users
routes/auth.py - Authentication → Page templates: renders login
routes/auth.py - Dashboard pages → Page templates: renders pages
routes/dashboard.py - User → Management interface: manages records
static/js/management.js - Management interface → Resource and history API: fetches records
static/js/management.js - User → Analytics dashboard UI: views metrics
static/js/dashboard.js - Analytics dashboard UI → Analytics endpoints: requests metrics
static/js/dashboard.js - Resource and history API → Database access: queries and writes
routes/api.py - Analytics endpoints → Database access: queries metrics
routes/analytics.py - Database access → MySQL database: executes SQL
services/database.py - Analytics endpoints → Reporting and status views: queries views
routes/analytics.py - Resource and history API → Reporting and status views: queries views
routes/api.py - Relational schema → MySQL database: defines schema
README.md - Demonstration data → MySQL database: loads sample data
README.md - Reporting and status views → MySQL database: defines views
README.md - Stored procedures → MySQL database: defines routines
README.md - Database triggers → MySQL database: defines triggers
README.md - Database indexes → MySQL database: defines indexes
README.md - Transaction examples → MySQL database: demonstrates transactions
README.md