How esakkimuthu-237/esakki_pr works
PharmaCare is a browser-based pharmacy management app backed by Supabase. A user signs in, then manages medicine batches and suppliers, creates GST invoices from available stock, and reviews invoices, alerts, dashboard statistics, and reports. The excerpts show the UI-to-database calls and the Supabase auth/profile helpers; README-documented capabilities such as email verification, password reset, and settings are retained, but unsampled wiring is not inferred. The schema and auth-page internals were not excerpted, so those links rely only on documented behavior.
Main entry points: db.js Database operations · app.js Inventory and alerts · supabase-config.js Auth and pharmacy profile · billing.js Billing and invoices
Components 14
Application workflows
- Sign-in and recovery
auth.html - Dashboard
app.js - Inventory and alerts
app.js - Billing and invoices
billing.js - Supplier management
suppliers.js - Reports and analytics
reports.js - Pharmacy settings
app.js
Data and access
- Auth and pharmacy profile
supabase-config.js - Database operations
db.js - Legacy data migration
db.js - Relational schema and stock functions
schema.sql
External services
- Supabase platform
- Browser localStorage
Other components
- Pharmacy user
Connections 18
- Pharmacy user → Sign-in and recovery: signs in
README.md - Sign-in and recovery → Auth and pharmacy profile: authenticates
- Auth and pharmacy profile → Supabase platform: auth and profile
supabase-config.js - Dashboard → Auth and pharmacy profile: initializes session
app.js - Dashboard → Database operations: loads dashboard data
- Inventory and alerts → Database operations: manages medicines
app.js - Inventory and alerts → Database operations: loads suppliers
app.js - Supplier management → Database operations: manages suppliers
suppliers.js - Supplier management → Inventory and alerts: refreshes dropdown
suppliers.js - Billing and invoices → Database operations: saves and reads invoices
billing.js - Billing and invoices → Database operations: loads medicines
billing.js - Reports and analytics → Database operations: requests report data
reports.js - Reports and analytics → Database operations: loads medicines
reports.js - Pharmacy settings → Database operations: updates profile
- Database operations → Supabase platform: queries and updates
db.js - Database operations → Relational schema and stock functions: uses tables and RPCs
db.js - Database operations → Legacy data migration: runs migration
db.js - Legacy data migration → Browser localStorage: reads old medicines