How maikiuwu/frontbibliotk works
This is a React frontend for BiblioTK, a library-account application. The main user flow is registration or login, session verification and role-based routing, then access to a personal profile or the admin user overview. Profile editing and account deletion are separate profile-service operations; the home screen also displays user-role statistics. The README describes only a minimal React/Vite template, so additional library capabilities are not documented. Several page implementations were not sampled; their route relationships are supported by App.jsx, but their internal behavior is not inferred.
Main entry points: App.jsx App router · Profile.jsx Profile editor · ProfileService.js Profile service · Register.jsx Registration form
Components 22
App shell
- App router
src/app/pages/App.jsx - React entry
src/main.jsx
Account access
- Login form
src/app/pages/Login.jsx - Login DTO
src/app/dto/loginUser.dto.js - Registration form
src/app/pages/Register.jsx - Registration DTO
src/app/dto/registerUser.dto.js - User validation
src/app/utils/userValidation.js
Account and overview
- Home overview
src/app/pages/Home.jsx - Profile editor
src/app/pages/Profile.jsx - Profile DTO
src/app/dto/updateProfile.dto.js - User dashboard
src/app/pages/UserDashboard.jsx - Dashboard page
src/app/pages/Dashboard.jsx - Construction page
src/app/pages/Construccion.jsx
Backend services
- Login service
src/service/LoginService.js - Registration service
src/service/RegisterService.js - Profile service
src/service/ProfileService.js - User statistics service
src/service/UserService.js
Other components
- Visitor
- Auth backend
- Registration backend
- Profile backend
- Statistics backend
Connections 26
- Visitor → App router: opens app
- React entry → App router: renders
src/main.jsx - App router → Login service: checks session
src/app/pages/App.jsx - App router → Login service: logs out
src/app/pages/App.jsx - App router → Login form: routes to
src/app/pages/App.jsx - App router → Registration form: routes to
src/app/pages/App.jsx - App router → Home overview: routes to
src/app/pages/App.jsx - App router → Profile editor: routes to
src/app/pages/App.jsx - App router → User dashboard: routes to
src/app/pages/App.jsx - App router → Construction page: routes to
src/app/pages/App.jsx - Login form → Login DTO: creates
src/app/pages/Login.jsx - Login form → Login service: submits login
src/app/pages/Login.jsx - Login service → Auth backend: sends requests
src/service/LoginService.js - Registration form → User validation: validates data
src/app/pages/Register.jsx - Registration form → Registration DTO: creates
src/app/pages/Register.jsx - Registration form → Registration service: submits registration
src/app/pages/Register.jsx - Registration service → Registration backend: posts registration
src/service/RegisterService.js - Home overview → User statistics service: loads statistics
src/app/pages/Home.jsx - User statistics service → Statistics backend: fetches statistics
src/service/UserService.js - Home overview → Profile service: loads profile
src/app/pages/Home.jsx - Home overview → Profile service: deletes account
src/app/pages/Home.jsx - Profile editor → Profile service: loads profile
src/app/pages/Profile.jsx - Profile editor → Profile service: updates profile
src/app/pages/Profile.jsx - Profile editor → Profile DTO: creates
src/app/pages/Profile.jsx - Profile editor → User validation: validates data
src/app/pages/Profile.jsx - Profile service → Profile backend: sends requests
src/service/ProfileService.js