How sunnyimt/user-management-system works
This is a React and .NET user-management application with authentication and CRUD, plus document ingestion/search and chat capabilities visible in the backend source. The main user flow is login, then manage users; authenticated users can also upload PDFs, search their content, and chat with document context. The README describes CSV storage, but the sampled backend registers PostgreSQL with Entity Framework and defines document, chunk, chat, and user tables. Frontend component wiring and several backend modules were not sampled, so some documented feature links are shown only at the API boundary.
Main entry points: api.js API client · ChatService.cs Chat service · ApplicationDbContext.cs EF data context · App.js App shell
Components 17
React interface
- App shell
Frontend/user-management-app/src/App.js - Login UI
Frontend/user-management-app/src/components/Login.js - User management UI
Frontend/user-management-app/src/components/UserManagement.js - Document upload UI
Frontend/user-management-app/src/components/DocumentUpload.js - Chat UI
Frontend/user-management-app/src/components/Chat.js - API client
Frontend/user-management-app/src/services/api.js
Identity and users
- Auth controller
Backend/UserManagementAPI/Controllers/AuthController.cs - Users controller
Backend/UserManagementAPI/Controllers/UsersController.cs - User service
Backend/UserManagementAPI/Services/UserService.cs
Documents and chat
- Document controller
Backend/UserManagementAPI/Controllers/DocumentController.cs - Document service
Backend/UserManagementAPI/Services/DocumentService.cs - Chat controller
Backend/UserManagementAPI/Controllers/ChatController.cs - Chat service
Backend/UserManagementAPI/Services/ChatService.cs
Persistence
- EF data context
Backend/UserManagementAPI/data/ApplicationDbContext.cs - PostgreSQL
Other components
- User
- LLM service
Connections 21
- User → App shell: uses
- App shell → Login UI: shows when signed out
- App shell → User management UI: shows when signed in
- Login UI → API client: submits credentials
- User management UI → API client: requests user operations
- Document upload UI → API client: uploads and searches
- Chat UI → API client: sends chat requests
- API client → Auth controller: login request
- API client → Users controller: user requests
- API client → Document controller: document requests
- API client → Chat controller: chat requests
- Auth controller → User service: looks up account
- Users controller → User service: manages users
- User service → EF data context: reads and writes
- Document controller → Document service: handles document actions
- Document service → EF data context: stores and searches
- Chat controller → Chat service: sends messages and history
- Chat service → Document service: gets document context
- Chat service → EF data context: stores and reads chat
- Chat service → LLM service: requests responses
- EF data context → PostgreSQL: queries and persists