How codeslack/smart-erp works
Smart ERP is a React/TypeScript ERP frontend. Users enter through login or protected application routes, then work in operational modules such as master data, purchasing, invoicing, and accounting. Feature screens use RTK Query APIs backed by a shared request layer; the app also exposes dashboard, user-management, and placeholder routes. The README describes only a Vite template, so product capabilities are inferred from the route map and source index. Unsampled feature internals are represented by their listed screen or API paths; edges are limited to relationships shown in the excerpts or index.
Main entry points: AppRoutes.tsx App routes · apiSlice.ts RTK Query API · Login.tsx Login · axiosBaseQuery.ts HTTP request layer
Components 20
Application entry
- App routes
src/routes/AppRoutes.tsx - Dashboard
src/features/dashboard/views/DashboardOverview.tsx
Identity and access
- Login
src/features/auth/views/Login.tsx - Authentication API
src/features/auth/api/authApi.ts - Session state
src/features/auth/store/authSlice.ts - User management
src/features/user-management/views/UserList.tsx
Business operations
- Master data
src/features/masters - Product catalog
src/features/masters/products/views/ProductListView.tsx - Purchasing
src/features/purchase - Invoicing
src/features/invoicing/views/InvoicingDashboard.tsx - Placeholder modules
src/components/ModulePlaceholder.tsx
Finance and reporting
- Accounting
src/features/accounting/views/ChartOfAccounts.tsx - Journal entries
src/features/accounting/journals/views/JournalEntriesPane.tsx - Report routes
src/routes/AppRoutes.tsx
Shared platform
- RTK Query API
src/store/apiSlice.ts - HTTP request layer
src/lib/axiosBaseQuery.ts - Axios client
src/lib/axios.ts - Mock data lookup
src/lib/mockData.ts
Other components
- ERP user
- ERP API server
Connections 25
- ERP user → App routes: opens routes
src/routes/AppRoutes.tsx - App routes → Login: routes login
src/routes/AppRoutes.tsx - App routes → Dashboard: routes dashboard
src/routes/AppRoutes.tsx - App routes → User management: routes users
src/routes/AppRoutes.tsx - App routes → Master data: routes masters
src/routes/AppRoutes.tsx - App routes → Product catalog: routes products
src/routes/AppRoutes.tsx - App routes → Purchasing: routes purchasing
src/routes/AppRoutes.tsx - App routes → Invoicing: routes invoicing
src/routes/AppRoutes.tsx - App routes → Accounting: routes accounts
src/routes/AppRoutes.tsx - App routes → Journal entries: routes journals
src/routes/AppRoutes.tsx - App routes → Report routes: routes reports
src/routes/AppRoutes.tsx - App routes → Placeholder modules: routes shells
src/routes/AppRoutes.tsx - Login → Authentication API: uses mutations
src/features/auth/index.ts - Authentication API → RTK Query API: injects endpoints
src/features/auth/api/authApi.ts - RTK Query API → HTTP request layer: dispatches requests
src/store/apiSlice.ts - HTTP request layer → Mock data lookup: checks mock data
src/lib/axiosBaseQuery.ts - HTTP request layer → Axios client: forwards requests
src/lib/axiosBaseQuery.ts - Axios client → ERP API server: sends HTTP
- Login → Session state: updates session
- Dashboard → RTK Query API: uses dashboard API
- Master data → RTK Query API: uses feature APIs
- Product catalog → RTK Query API: uses product API
- Purchasing → RTK Query API: injects endpoints
src/features/purchase/api.ts - Invoicing → RTK Query API: uses invoicing API
- Accounting → RTK Query API: uses accounting API