How davy2898/microservicepharmacy works
This repository implements a pharmacy-management application: staff use a Vue interface to manage medicines, stock, prescriptions, and pharmacy configuration; an Express API serves pharmacy data backed by PostgreSQL. A separate category service owns category CRUD, and the UI also includes dosage calculators. The sampled code confirms the prescription store’s API calls and the main backend’s database access. Several view-to-route and service integrations are represented by their tree paths but lack sampled wiring evidence, so uncertain links are omitted.
Main entry points: config/db.js Database connection · App.vue App shell · server.js Prescription endpoints · config/db.js Category DB connection
Components 24
Pharmacy interface
- App shell
vue-project/src/App.vue - Navigation
vue-project/src/components/Sidebar.vue - Pharmacy operations
vue-project/src/views/PharmacyView.vue - Inventory
vue-project/src/views/InventoryView.vue - Medicines
vue-project/src/views/MedicineView.vue - Reference settings
vue-project/src/views/CategoryView.vue - Additional settings
vue-project/src/views/UnitView.vue - Other configuration views
vue-project/src/views/TemplateView.vue - Prescription store
vue-project/src/stores/pharmacyStore.js - Localization
vue-project/src/i18n.js
Pharmacy API
- Pharmacy API
vue-project/pharmacy-backend/server.js - Prescription endpoints
vue-project/pharmacy-backend/server.js - Inventory endpoints
vue-project/pharmacy-backend/server.js - Medicine and settings endpoints
vue-project/pharmacy-backend/server.js - Database connection
vue-project/pharmacy-backend/config/db.js - Pharmacy PostgreSQL
- Stock import
vue-project/pharmacy-backend/import-stock.js
Category service
- Category CRUD API
pharmacy-category-service/server.js - Category DB connection
pharmacy-category-service/config/db.js - Category PostgreSQL
Dosage tools
- Dosage workspace
vue-project/src/views/dosage/DosageView.vue - Dosage service
vue-project/pharmacy-backend/services/dosageService.js - Dosage calculators
vue-project/src/views/dosage/components/PediatricDosageCalculator.vue
Other components
- Pharmacy staff
Connections 10
- Pharmacy staff → App shell: uses
- App shell → Navigation: renders
vue-project/src/App.vue - Prescription store → Prescription endpoints: requests
vue-project/src/stores/pharmacyStore.js - Prescription endpoints → Database connection: queries
vue-project/pharmacy-backend/server.js - Inventory endpoints → Database connection: queries
vue-project/pharmacy-backend/server.js - Medicine and settings endpoints → Database connection: queries
vue-project/pharmacy-backend/server.js - Stock import → Database connection: writes
vue-project/pharmacy-backend/import-stock.js - Database connection → Pharmacy PostgreSQL: connects
vue-project/pharmacy-backend/config/db.js - Category CRUD API → Category DB connection: queries
pharmacy-category-service/server.js - Category DB connection → Category PostgreSQL: connects
pharmacy-category-service/config/db.js