How ramhali/elco-accounting works
This repository is an administrative web application: a React dashboard presents sign-in/sign-up and operational pages, while a Django backend exposes user and master-data functionality. The main business workflow is maintaining suppliers, employees, departments, and chart-of-account records through frontend service calls and backend model-backed creation logic. The dashboard also includes calendar, charts, profiles, and reusable UI pages. Source evidence is limited to the supplied excerpts and SOURCE INDEX; unshown page-to-service and backend routing links are not asserted.
Main entry points: App.tsx Page routing · axios.ts HTTP client · main.tsx App bootstrap · views.py Master-data handlers
Components 24
Web application
- App bootstrap
frontend/src/main.tsx - Page routing
frontend/src/App.tsx - Dashboard layout
frontend/src/layout/AppLayout.tsx - Sidebar state
frontend/src/context/SidebarContext.tsx - Theme state
frontend/src/context/ThemeContext.tsx - Dashboard and tools
frontend/src/pages - Calendar
frontend/src/pages/Calendar.tsx - UI element pages
frontend/src/pages/UiElements
Master data
- Master-data pages
frontend/src/pages/MasterData - Supplier service
frontend/src/components/suppliers/supplierService.ts - Employee service
frontend/src/components/employees/employeeService.ts - Department service
frontend/src/components/departments/departmentService.ts - Account service
frontend/src/components/chartofaccounts/accountService.ts - HTTP client
frontend/src/api/axios.ts
Django backend
- Backend API
- Master-data handlers
backend/mdsetup/views.py - Data serializers
backend/mdsetup/serializers.py - Master-data operations
backend/mdsetup/services.py - Master-data records
backend/mdsetup/models.py
Identity
- Sign-in and sign-up
frontend/src/pages/AuthPages - Authentication API
frontend/src/api/apiAuthentication.ts - User handlers
backend/users/views.py - User records
backend/users/models.py
Other components
- Dashboard user
Connections 23
- Dashboard user → App bootstrap: opens
- App bootstrap → Page routing: renders
frontend/src/main.tsx - App bootstrap → Theme state: provides theme
frontend/src/main.tsx - Page routing → Dashboard layout: routes through
frontend/src/App.tsx - Page routing → Dashboard and tools: routes to
frontend/src/App.tsx - Page routing → Calendar: routes to
frontend/src/App.tsx - Page routing → UI element pages: routes to
frontend/src/App.tsx - Page routing → Master-data pages: routes to
frontend/src/App.tsx - Page routing → Sign-in and sign-up: routes to
frontend/src/App.tsx - Dashboard layout → Sidebar state: uses state
frontend/src/layout/AppLayout.tsx - Supplier service → HTTP client: calls
frontend/src/components/suppliers/supplierService.ts - Employee service → HTTP client: calls
frontend/src/components/employees/employeeService.ts - Department service → HTTP client: calls
frontend/src/components/departments/departmentService.ts - Account service → HTTP client: calls
frontend/src/components/chartofaccounts/accountService.ts - HTTP client → Backend API: sends requests
- Backend API → Master-data handlers: dispatches
- Master-data handlers → Master-data operations: calls
backend/mdsetup/views.py - Master-data handlers → Data serializers: uses
backend/mdsetup/views.py - Master-data operations → Master-data records: queries and creates
backend/mdsetup/services.py - Sign-in and sign-up → Authentication API: uses
- Authentication API → HTTP client: uses client
frontend/src/api/apiAuthentication.ts - User handlers → User records: uses records
- Master-data records → User records: references user
backend/mdsetup/models.py