How joaovitoralbernaz/farmasic_system works
Farmasic System is a browser-based pharmacy management application served by an Express/SQLite backend. Users manage customers, employees, suppliers and products, record sales, and view reports; the sampled UI code calls JSON endpoints, while the server owns request handling and database operations. Movement-form controls are also present, but their persistence behavior is not evidenced. README and excerpts are sparse, so unsampled backend capabilities are included only where the visible UI suggests them, and uncertain connections are omitted.
Main entry points: public Static web pages · index.js Express server and routes · vendas.js Sales and cart UI · cliente.js Customer records UI
Components 18
Browser interface
- Static web pages
public - Mobile navigation
public/js/index.js - Customer records UI
public/js/cliente.js - Employee records UI
public/js/funcionario.js - Supplier records UI
public/js/fornecedor.js - Product records UI
public/js/produto.js - Sales and cart UI
public/js/vendas.js - Movement form controls
public/js/movimento.js - Report selection UI
public/js/relatorio.js
Application API
- Express server and routes
index.js - Customer operations
index.js - Employee operations
index.js - Supplier operations
index.js - Product operations
index.js - Sales operations
index.js - Report queries
index.js
SQLite data
- SQLite database
index.js
Other components
- Pharmacy staff
Connections 30
- Pharmacy staff → Static web pages: uses
- Static web pages → Mobile navigation: loads script
- Static web pages → Customer records UI: loads script
- Static web pages → Employee records UI: loads script
- Static web pages → Supplier records UI: loads script
- Static web pages → Product records UI: loads script
- Static web pages → Sales and cart UI: loads script
- Static web pages → Movement form controls: loads script
- Static web pages → Report selection UI: loads script
- Customer records UI → Customer operations: HTTP requests
public/js/cliente.js - Employee records UI → Employee operations: HTTP requests
public/js/funcionario.js - Supplier records UI → Supplier operations: HTTP requests
public/js/fornecedor.js - Product records UI → Product operations: HTTP requests
public/js/produto.js - Sales and cart UI → Sales operations: submits sale
public/js/vendas.js - Sales and cart UI → Customer operations: looks up customer
public/js/vendas.js - Sales and cart UI → Product operations: looks up products
public/js/vendas.js - Sales and cart UI → Report queries: requests report
public/js/vendas.js - Report selection UI → Report queries: requests report
- Express server and routes → Customer operations: routes requests
index.js - Express server and routes → Employee operations: routes requests
index.js - Express server and routes → Supplier operations: routes requests
index.js - Express server and routes → Product operations: routes requests
index.js - Express server and routes → Sales operations: routes requests
index.js - Express server and routes → Report queries: routes requests
index.js - Customer operations → SQLite database: reads and writes
index.js - Employee operations → SQLite database: reads and writes
index.js - Supplier operations → SQLite database: reads and writes
index.js - Product operations → SQLite database: reads and writes
index.js - Sales operations → SQLite database: reads and writes
index.js - Report queries → SQLite database: queries records
index.js