How loong-c/fdu-database works
This is a web-based chain-bookstore management system. Staff sign in, manage catalog and customer data, then record sales or purchasing and stock receipts; the backend applies business rules and updates store-level inventory. The frontend also supports dashboards and reports, including CSV export. The graph combines README-documented capabilities with sampled service code; view-to-service wiring and database access details are represented only where the repository structure or documented behavior supports them.
Main entry points: urls.py Django API · inventory Store inventory · catalog Catalog management · sales Sales processing
Components 18
Web client
- Vue application
frontend/src/main.ts - Role-aware routing
frontend/src/router/index.ts - Management views
frontend/src/views - API clients
frontend/src/api - HTTP and tokens
frontend/src/api/http.ts
Identity and API
- Django API
backend/config/urls.py - Accounts and JWT
backend/accounts
Store operations
- Catalog management
backend/catalog - Customers and members
backend/customers - Store management
backend/stores - Sales processing
backend/sales - Purchasing and receipt
backend/procurement - Store inventory
backend/inventory
Reporting
- Analytics API
backend/analytics - Dashboard and reports
frontend/src/views/analytics/AnalyticsView.vue - Chart components
frontend/src/components/charts
Other components
- Staff user
- MySQL business data
Connections 26
- Staff user → Vue application: uses
- Vue application → Role-aware routing: mounts
- Role-aware routing → Management views: selects views
- Management views → API clients: requests data
- API clients → HTTP and tokens: sends requests
- HTTP and tokens → Django API: calls API
- Django API → Accounts and JWT: routes auth
- Django API → Catalog management: routes catalog
- Django API → Customers and members: routes customers
- Django API → Store management: routes stores
- Django API → Sales processing: routes sales
- Django API → Purchasing and receipt: routes purchasing
- Django API → Store inventory: routes inventory
- Django API → Analytics API: routes reports
- Sales processing → Store inventory: adjusts stock
- Purchasing and receipt → Store inventory: adds approved stock
- Catalog management → Store inventory: sets initial stock
- Dashboard and reports → API clients: requests reports
- Dashboard and reports → Chart components: renders charts
- Analytics API → MySQL business data: reads business data
- Catalog management → MySQL business data: stores catalog
- Customers and members → MySQL business data: stores customer data
- Store management → MySQL business data: stores locations
- Sales processing → MySQL business data: stores sales
- Purchasing and receipt → MySQL business data: stores purchases
- Store inventory → MySQL business data: reads and writes stock