How mdiqbalhossan/pharmacy-management-system works
Main Architecture Components
a) Client Layer
• Vue.js frontend components (found in resources/js)
• Inertia.js as the connecting layer between frontend and backend
• TailwindCSS for styling
b) Application Layer
• Laravel Framework core
• Authentication system
• Controllers layer
• Middleware layer
• Models layer
c) Data Layer
• Database (MySQL/PostgreSQL)
• Cache storage
• File storage system
Specific Components
Frontend Section:
• Auth components
• Layout components
• Pages (Dashboard, Category, Company, Location, Supplier)
• Shared components
Backend Section:
• Controllers hierarchy:
• Base Controller
• Auth Controllers
• Resource Controllers (Category, Company, Location, Supplier, Medicine)
• Models structure:
• User
• Medicine
• Category
• Company
• Location
• Supplier
• Middleware components:
• Authentication
• CSRF Protection
• API handlers
Database Section:
• Tables and their relationships
• Migration system
• Seeders
Flow and Relationships
• HTTP request flow from client to server
• Database queries and responses
• Authentication flow
• API endpoints and their connections to controllers
• Model relationships
Important Elements to Highlight
• Security layers (authentication, CSRF)
• MVC pattern implementation
• API routes and endpoints
• Database relationships
• Frontend component hierarchy
Specific Implementation Details
[Vue.js Frontend] → [Inertia.js] → [Laravel Backend] → [Database]
With sub-sections:
Frontend:
• Pages (Vue components)
• Layouts
• Shared Components
• Forms
Backend:
• Routes
• Controllers
• Models
• Middleware
• Services
Database:
• Tables
• Relationships
• Migrations