How sebasttiant/swdrogueriaespecifica works
Específica GO is a mobile-first web system for operating a pharmacy. Staff sign in, then use dashboard modules to manage products and stock, record incoming inventory, handle customer orders and shortages, and review operational reports and audit history. The documented server-side pattern is action → service → repository, backed by PostgreSQL. The graph preserves the README’s principal capabilities; most feature internals were not sampled, so detailed links are limited to documented architecture and the excerpts shown.
Main entry points: login/page.tsx Login · auth.actions.ts Auth actions · auth.service.ts Auth service · productos/page.tsx Product catalog
Components 22
Access and shell
- Login
apps/web/app/(auth)/login/page.tsx - Auth actions
apps/web/server/actions/auth.actions.ts - Auth service
apps/web/server/services/auth.service.ts - User repository
apps/web/server/repositories/user.repository.ts - App shell
apps/web/app/_components/app-shell/app-shell.tsx - Dashboard
apps/web/app/(dashboard)/dashboard/page.tsx
Catalog and inventory
- Product catalog
apps/web/app/(dashboard)/productos/page.tsx - Product services
apps/web/server/services/product.service.ts - Batches and expiry
apps/web/features/vencimientos/expiring-batch-list.tsx - Inventory entries
apps/web/app/(dashboard)/entradas/page.tsx - Entry service
apps/web/server/services/inventory-entry.service.ts - Inventory repositories
apps/web/server/repositories/inventory-entry.repository.ts
Orders and shortages
- Customer orders
apps/web/app/(dashboard)/pendientes/page.tsx - Pending service
apps/web/server/services/pending.service.ts - Pending repository
apps/web/server/repositories/pending.repository.ts - Shortages
apps/web/app/(dashboard)/faltantes/page.tsx - Shortage services
apps/web/server/services/missing-item.service.ts
Administration and oversight
- User administration
apps/web/app/(dashboard)/admin/page.tsx - Audit history
apps/web/app/(dashboard)/auditoria/page.tsx - Reports
apps/web/app/(dashboard)/reportes/page.tsx - Report services
apps/web/server/services/reports.service.ts
Other components
- Pharmacy staff
Connections 21
- Pharmacy staff → Login: signs in
- Login → Auth actions: submits credentials
- Auth actions → Auth service: verifies credentials
- Auth service → User repository: looks up user
apps/web/server/services/auth.service.ts - Pharmacy staff → App shell: uses
- Pharmacy staff → Dashboard: opens
- Pharmacy staff → Product catalog: manages products
- Product catalog → Product services: uses product services
- Pharmacy staff → Batches and expiry: reviews expiry
- Pharmacy staff → Inventory entries: records arrivals
- Inventory entries → Entry service: registers entry
- Entry service → Inventory repositories: persists inventory
- Pharmacy staff → Customer orders: manages orders
- Customer orders → Pending service: uses order services
- Pending service → Pending repository: reads and writes
apps/web/server/services/pending.service.ts - Pharmacy staff → Shortages: reviews shortages
- Shortages → Shortage services: exports shortages
- Pharmacy staff → User administration: administers users
- Pharmacy staff → Audit history: reviews activity
- Pharmacy staff → Reports: views reports
- Reports → Report services: requests analytics