How dharmeshlakum67/cardspe-server-02 works
Facit is a React administration dashboard for managing users, roles, service configuration, payments, reports, and developer API documentation. An administrator enters through the routed interface; protected pages use authentication and permission state, and domain services make API requests. The README describes the product as an admin dashboard template, while the route configuration and source index reveal its major feature areas. Some page and integration implementations are not included in the excerpts, so those branches are represented at the routing level rather than with speculative internal flows.
Main entry points: apiClient.ts HTTP API client · contentRoutes.tsx Page routing · App.tsx Dashboard shell · authService.ts Authentication service
Components 20
Application shell
- Dashboard shell
src/App/App.tsx - Page routing
src/routes/contentRoutes.tsx
Identity and access
- Authentication service
src/pages/presentation/auth/services/authService.ts - Permission state
src/contexts/permissionContext.tsx
Admin workflows
- Auth pages
src/routes/contentRoutes.tsx - User and role admin
src/routes/contentRoutes.tsx - Service management
src/pages/presentation/service-management/service-category/ServiceCategoryListPage.tsx - Payments
src/pages/presentation/payments/wallet-transaction/service/walletTransactionService.ts - Reports
src/pages/presentation/reports/service/reportService.ts - Developer tools
src/pages/presentation/developer/api-documentation/service/apiDocumentationService.ts - User service
src/pages/presentation/user-management/users/service/userService.ts - Category service
src/pages/presentation/service-management/service-category/service/serviceCategoryService.ts
Shared services
- HTTP API client
src/services/apiClient.ts - API endpoints
src/constants/apiEndpoints.ts - Runtime configuration
src/config/env.config.ts - Permission service
src/services/permissionService.ts - Notifications
src/services/notificationService.ts - Socket notifications
src/components/common/SocketNotificationListener.tsx
Other components
- Administrator
- Backend API
Connections 26
- Administrator → Dashboard shell: uses
src/App/App.tsx - Dashboard shell → Page routing: hosts
- Page routing → Auth pages: routes to
src/routes/contentRoutes.tsx - Page routing → User and role admin: routes to
src/routes/contentRoutes.tsx - Page routing → Service management: routes to
src/routes/contentRoutes.tsx - Administrator → User and role admin: manages
- Administrator → Payments: manages
- Administrator → Reports: views
- Administrator → Developer tools: manages
- Auth pages → Authentication service: uses
- Authentication service → HTTP API client: calls
src/pages/presentation/auth/services/authService.ts - User and role admin → User service: uses
- User service → HTTP API client: calls
src/pages/presentation/user-management/users/service/userService.ts - Service management → Category service: calls
src/pages/presentation/service-management/service-category/ServiceCategoryListPage.tsx - Category service → HTTP API client: calls
- Reports → HTTP API client: calls
src/pages/presentation/reports/service/reportService.ts - Payments → HTTP API client: calls
- Developer tools → HTTP API client: calls
- Authentication service → API endpoints: uses
src/pages/presentation/auth/services/authService.ts - User service → API endpoints: uses
src/pages/presentation/user-management/users/service/userService.ts - HTTP API client → Runtime configuration: reads config
src/services/apiClient.ts - HTTP API client → Backend API: sends requests
src/services/apiClient.ts - Permission state → Permission service: loads permissions
src/contexts/permissionContext.tsx - Permission service → HTTP API client: calls
src/services/permissionService.ts - Dashboard shell → Socket notifications: mounts
src/App/App.tsx - Notifications → HTTP API client: calls
src/services/notificationService.ts