How akshayngupta/pharmacy-management-system works
Pharmanage is a single-pharmacy Flask application for customer and category records, medicine and batch lookup, sales billing, and stock reports. A browser request reaches Flask route handlers, which query MySQL and render Jinja pages; billing also invokes a stored procedure, while reports and the dashboard use database views. The README documents the schema and SQL features, but only app.py was sampled, so database relationships beyond its visible queries are limited to documented capabilities.
Main entry points: app.py Flask routes · advanced.sql Views and procedure · list.html List page · schema.sql Core schema
Components 15
Web workflows
- Flask routes
app.py - Dashboard stats
app.py - Customer and categories
app.py - Medicine and batches
app.py - Sale billing
app.py - Stock reports
app.py
Page templates
- Dashboard page
templates/index.html - List page
templates/list.html - Entry form
templates/form.html - Sale form
templates/sale_form.html - Reports page
templates/reports.html
Database layer
- MySQL database
- Core schema
schema.sql - Views and procedure
advanced.sql
Other components
- Pharmacy user
Connections 18
- Pharmacy user → Flask routes: requests pages
README.md - Flask routes → Dashboard stats: routes to
app.py - Flask routes → Customer and categories: routes to
app.py - Flask routes → Medicine and batches: routes to
app.py - Flask routes → Sale billing: routes to
app.py - Flask routes → Stock reports: routes to
app.py - Dashboard stats → Dashboard page: renders
app.py - Customer and categories → List page: renders
app.py - Customer and categories → Entry form: renders
app.py - Medicine and batches → List page: renders
app.py - Sale billing → Sale form: renders
app.py - Stock reports → Reports page: renders
app.py - Flask routes → MySQL database: queries and writes
app.py - Sale billing → Views and procedure: calls procedure
app.py - Dashboard stats → Views and procedure: queries view
app.py - Stock reports → Views and procedure: queries views
app.py - Core schema → MySQL database: defines tables
README.md - Views and procedure → MySQL database: defines SQL features
README.md