How milton-18-coder/asset-management-system works
This is a campus asset-management web application. Users sign in and work through asset registration and classification, location assignment, purchases, transfers, inspections, maintenance, and audit/notification views; frontend state and API calls connect those workflows to an Express service and MySQL. The graph preserves the README’s major capability areas, but unsampled route implementations and most page-to-page interactions are represented only at subsystem level; their internal call relationships are not assumed.
Main entry points: AssetPriceHistoryModal.jsx Price history views · App.jsx Application routes · store/index.js Redux store · server/index.js Express API and routing
Components 22
Web application
- Application routes
src/App.jsx - Asset workflows
src/pages - Location mapping
src/pages - Purchases and vendors
src/pages/Purchases.jsx - Transfers and upkeep
src/pages - Audit and alerts
src/pages
Client state and UI
- HTTP client
src/api/index.js - Redux store
src/store/index.js - Asset state
src/store/furnitureSlice.js - Purchase state
src/store/purchaseHistorySlice.js - Notification state
src/store/notificationsSlice.js - Asset categories
src/constants/assetCategories.js - Department rules
src/constants/departments.js - Price history views
src/components/AssetPriceHistoryModal.jsx - Price chart
src/components/PriceHistoryChart.jsx - Shared UI components
src/components/UIComponents.jsx
API service
- Express API and routing
server/index.js - Domain API routes
server/routes
Persistent data
- Database setup
server/db.js - MySQL database
- Initial data seeding
server/seedData.js
Other components
- Campus users
Connections 22
- Campus users → Application routes: uses
README.md - Application routes → Asset workflows: routes to
src/App.jsx - Application routes → HTTP client: synchronizes through
src/App.jsx - Application routes → Redux store: dispatches into
src/App.jsx - Asset workflows → Asset categories: classifies with
src/pages/AddFurniture.jsx - Asset workflows → Department rules: validates against
src/pages/AddFurniture.jsx - Purchases and vendors → Purchase state: updates
src/pages/Purchases.jsx - Purchases and vendors → Asset state: updates asset
src/pages/Purchases.jsx - Purchases and vendors → HTTP client: fetches records
src/pages/Purchases.jsx - Price history views → Price chart: renders
src/components/AssetPriceHistoryModal.jsx - Price history views → Purchase state: records purchase
src/components/AssetPriceHistoryModal.jsx - Price history views → Asset state: updates asset
src/components/AssetPriceHistoryModal.jsx - Price history views → Shared UI components: uses controls
src/components/AssetPriceHistoryModal.jsx - Redux store → Asset state: registers
src/store/index.js - Redux store → Purchase state: registers
src/store/index.js - Redux store → Notification state: registers
src/store/index.js - HTTP client → Express API and routing: requests API
src/api/index.js - Express API and routing → Domain API routes: mounts routes
server/index.js - Express API and routing → Database setup: initializes
server/index.js - Express API and routing → Initial data seeding: seeds data
server/index.js - Database setup → MySQL database: creates tables
server/db.js - Domain API routes → Database setup: queries pool
server/routes/purchaseHistory.js