How samanthapaual-cpu/ems-final works
This is a role-based employee management system: administrators manage staff and organization settings, while employees use dashboards, time-clock, and leave-request features. The principal workflow runs from sign-in through role-specific screens to API operations and PostgreSQL-backed records. The graph keeps the documented domain areas distinct. Some frontend API-client and backend implementation details were not excerpted, so only documented or directly visible relationships are asserted.
Main entry points: App.jsx Application routes · api.js API request client · Dashboard.jsx Dashboard view · LoginForm.jsx Sign-in
Components 15
Web application
- Application routes
frontend/src/App.jsx - Sign-in
frontend/src/components/LoginForm.jsx - Navigation and session
frontend/src/components/Sidebar.jsx - Dashboard view
frontend/src/pages/Dashboard.jsx - Administrator summary
frontend/src/components/AdminDashboard.jsx - Employee summary
frontend/src/components/EmployeeDashboard.jsx - Employee management
frontend/src/pages/Employees.jsx - Attendance and time clock
frontend/src/pages/Attendance.jsx - Leave requests and review
frontend/src/pages/Leave.jsx - Account and organization settings
frontend/src/pages/Settings.jsx - API request client
frontend/src/assets/api.js
API services
- HTTP API and authorization
backend/src/server.js
Persistence
- PostgreSQL connection pool
backend/src/db.js - PostgreSQL database
Other components
- Admin or employee
Connections 19
- Admin or employee → Application routes: uses
- Application routes → Sign-in: routes to
frontend/src/App.jsx - Application routes → Dashboard view: routes to
frontend/src/App.jsx - Application routes → Employee management: routes to
frontend/src/App.jsx - Application routes → Attendance and time clock: routes to
frontend/src/App.jsx - Application routes → Leave requests and review: routes to
frontend/src/App.jsx - Application routes → Account and organization settings: routes to
frontend/src/App.jsx - Application routes → Navigation and session: renders via
- Dashboard view → API request client: requests summary
frontend/src/pages/Dashboard.jsx - Dashboard view → Administrator summary: renders
frontend/src/pages/Dashboard.jsx - Dashboard view → Employee summary: renders
frontend/src/pages/Dashboard.jsx - Sign-in → API request client: submits credentials
frontend/src/components/LoginForm.jsx - Employee management → API request client: requests employee data
frontend/src/pages/Employees.jsx - Attendance and time clock → API request client: requests time records
frontend/src/pages/Attendance.jsx - Leave requests and review → API request client: requests leave data
frontend/src/pages/Leave.jsx - Account and organization settings → API request client: requests settings
frontend/src/pages/Settings.jsx - API request client → HTTP API and authorization: sends API requests
- HTTP API and authorization → PostgreSQL connection pool: queries through
backend/src/server.js - PostgreSQL connection pool → PostgreSQL database: connects to
backend/src/db.js