How abdulhanan42/pos-system works
This repository implements a restaurant POS platform: a Vue staff application and customer ordering site use a FastAPI backend for accounts, menu, sales, kitchen, delivery, inventory, purchasing, reporting, and restaurant administration. In the staff flow, an authenticated operator uses POS views and stores to create and track orders through the API; backend order routes apply inventory and event behavior and persist domain records. Edges below are limited to relationships visible in excerpts or the source index; many feature-specific API links are necessarily omitted where their implementation was not sampled.
Main entry points: main.py FastAPI application · database.py Tenant data access · auth.py Authentication routes · orders.py Order routes
Components 29
Staff POS
- Staff application
src/App.vue - Permission routing
src/router/index.js - Session and access
src/stores/auth.js - Auth requests
src/services/authService.js - HTTP client
src/services/api.js - Point of sale
src/views/pos/POS.vue - Order state
src/stores/order.js - Order requests
src/services/orderService.js - Inventory management
src/views/inventory/Inventory.vue - Menu modifiers
src/views/menu/Modifiers.vue - Staff administration
src/views/staff/Staff.vue
Customer Ordering
- Customer storefront
customer_siter/src/views/Home.vue - Public API client
customer_siter/src/services/publicApi.js
Backend API
- FastAPI application
backend/main.py - Authentication routes
backend/app/routers/auth.py - Order routes
backend/app/routers/orders.py - Inventory routes
backend/app/routers/inventory.py - Delivery routes
backend/app/routers/delivery.py - Catalog routes
backend/app/routers/products.py - Other feature routes
backend/app/routers
Backend Domain
- Identity and permissions
backend/app/auth.py - Stock operations
backend/app/inventory.py - Live event hub
backend/app/event_hub.py - Tenant data access
backend/app/database.py - Domain records
backend/app/models.py
Other components
- Staff operator
- Relational database
- Email delivery
- Online customer
Connections 34
- Staff operator → Staff application: uses
- Staff application → Permission routing: renders routes
src/App.vue - Permission routing → Session and access: checks access
src/router/index.js - Staff application → Session and access: watches session
src/App.vue - Session and access → Auth requests: requests identity
src/stores/auth.js - Auth requests → HTTP client: sends requests
src/services/authService.js - Point of sale → Order state: uses orders
src/views/pos/POS.vue - Order state → Order requests: calls
src/stores/order.js - Order requests → HTTP client: sends requests
src/services/orderService.js - HTTP client → FastAPI application: calls API
- FastAPI application → Authentication routes: registers
backend/main.py - FastAPI application → Order routes: registers
backend/main.py - FastAPI application → Inventory routes: registers
backend/main.py - FastAPI application → Delivery routes: registers
backend/main.py - FastAPI application → Catalog routes: registers
backend/main.py - FastAPI application → Other feature routes: registers features
backend/main.py - Authentication routes → Identity and permissions: uses
backend/app/routers/auth.py - Authentication routes → Tenant data access: gets sessions
backend/app/routers/auth.py - Order routes → Stock operations: uses stock operations
backend/app/routers/orders.py - Order routes → Live event hub: publishes events
backend/app/routers/orders.py - Delivery routes → Live event hub: uses events
backend/app/routers/delivery.py - Delivery routes → Stock operations: uses stock operations
backend/app/routers/delivery.py - Inventory routes → Stock operations: uses stock operations
backend/app/routers/inventory.py - Order routes → Tenant data access: gets sessions
backend/app/routers/orders.py - Inventory routes → Tenant data access: gets sessions
backend/app/routers/inventory.py - Tenant data access → Domain records: filters records
backend/app/database.py - Tenant data access → Relational database: persists records
- Authentication routes → Email delivery: sends email
- Online customer → Customer storefront: places orders
- Customer storefront → Public API client: requests public data
- Public API client → FastAPI application: calls API
- Inventory management → FastAPI application: manages stock via API
- Menu modifiers → FastAPI application: manages modifiers via API
- Staff administration → FastAPI application: manages staff via API