How haranlakha/user-management works
User Management is a React interface backed by a Java/Hibernate user service and PostgreSQL, with a local-storage demo fallback. The user workflow is to browse, search, and summarize users, then create, edit, or delete records; the App coordinates those actions through the user service. The backend source files are present in the tree but were not excerpted, so backend call relationships are shown as unverified rather than inferred. The README documents Hibernate and PostgreSQL; frontend excerpts document the API route and encryption-related UI.
Main entry points: App.jsx App coordinator · hibernate.cfg.xml Hibernate configuration · User.java User entity · userService.js User API client
Components 13
User interface
- App coordinator
frontend/src/App.jsx - User statistics
frontend/src/components/StatsCards.jsx - Search and table
frontend/src/components/UserTable.jsx - User form
frontend/src/components/UserModal.jsx - Delete confirmation
frontend/src/components/DeleteConfirmModal.jsx - User API client
frontend/src/services/userService.js
User service
- Users API
src/main/java/org/example/controller/UserController.java
Persistence and encryption
- User entity
src/main/java/org/example/entity/User.java - Encryption converter
src/main/java/org/example/encryption/EncryptionConverter.java - Hibernate configuration
src/main/resources/hibernate.cfg.xml - Encryption key config
src/main/resources/postgresql.conf
External systems
- PostgreSQL
Other components
- User
Connections 13
- User → App coordinator: uses
- App coordinator → User statistics: renders
frontend/src/App.jsx - App coordinator → Search and table: renders
frontend/src/App.jsx - App coordinator → User form: renders
frontend/src/App.jsx - App coordinator → Delete confirmation: renders
frontend/src/App.jsx - App coordinator → User API client: loads and mutates
frontend/src/App.jsx - User API client → Users API: requests /api/users
frontend/src/services/userService.js - Users API → User entity: handles records
- User entity → Encryption converter: encrypts fields
- Hibernate configuration → PostgreSQL: connects to
README.md - Hibernate configuration → User entity: maps entity
README.md - Encryption converter → Encryption key config: uses key
- Hibernate configuration → PostgreSQL: persists through
README.md