How kumarsai12383/ems works
WorkZen is a workforce-management web app: visitors explore its product landing page, register or log in, then enter a protected dashboard. The dashboard presents employee and department insights from frontend-held sample employee data; the backend handles registration, login, and access-token refresh. Landing-page sections advertise additional capabilities, while several app routes are placeholders in the sampled routing file. Source excerpts support the main routing and authentication flow; unsampled integrations are not treated as confirmed calls.
Main entry points: appRouting.jsx App routing · dashboard.jsx Dashboard page · employees.jsx Employee context · eachcards.jsx Workforce cards
Components 20
Web experience
- App routing
frontend/src/appRouting.jsx - Product landing
frontend/src/Browerspages/landingPage.jsx - Landing sections
frontend/src/landingComponents - Protected app layout
frontend/src/Browerspages/appLayout.jsx - Navigation sidebar
frontend/src/sidebarcomponents/sideBar.jsx
Workforce insights
- Dashboard page
frontend/src/appliccationPages/Dashboard/dashboard.jsx - Workforce cards
frontend/src/appliccationPages/Dashboard/DashboardComponents/eachcards.jsx - Bar chart
frontend/src/appliccationPages/Dashboard/DashboardComponents/barchart.jsx - Pie chart
frontend/src/appliccationPages/Dashboard/DashboardComponents/pieChart.jsx - Employee records
frontend/src/employeesData/employeesdata.js - Employee filters
frontend/src/utils/employeesfilters.js
Identity services
- Auth form
frontend/src/pages/auth.jsx - Auth API client
frontend/src/api's/api.js - Auth routes
backend/routes/authroutes.js - Register and login
backend/controllers/AuthController.js - User records
backend/models/userRegistration.js - Token refresh
backend/controllers/RefreshTokencontroller.js
Shared state
- Employee context
frontend/src/context/employees.jsx - User context
frontend/src/context/userContext.jsx
Other components
- Visitor
Connections 24
- Visitor → App routing: opens app
frontend/src/appRouting.jsx - App routing → Product landing: routes to
frontend/src/appRouting.jsx - App routing → Auth form: routes to
frontend/src/appRouting.jsx - App routing → Protected app layout: protects route
frontend/src/appRouting.jsx - App routing → Dashboard page: routes to
frontend/src/appRouting.jsx - Product landing → Landing sections: renders sections
frontend/src/Browerspages/landingPage.jsx - Auth form → Auth API client: calls auth API
frontend/src/pages/auth.jsx - Auth API client → Auth routes: submits auth requests
- Auth routes → Register and login: dispatches
backend/routes/authroutes.js - Register and login → User records: reads and writes
backend/controllers/AuthController.js - App routing → Employee context: provides state
frontend/src/appRouting.jsx - App routing → User context: provides state
frontend/src/appRouting.jsx - App routing → Employee records: initializes state
frontend/src/appRouting.jsx - Dashboard page → Workforce cards: renders
frontend/src/appliccationPages/Dashboard/dashboard.jsx - Dashboard page → Bar chart: renders
frontend/src/appliccationPages/Dashboard/dashboard.jsx - Dashboard page → Pie chart: renders
frontend/src/appliccationPages/Dashboard/dashboard.jsx - Workforce cards → Employee context: reads data
frontend/src/appliccationPages/Dashboard/DashboardComponents/eachcards.jsx - Bar chart → Employee context: reads data
frontend/src/appliccationPages/Dashboard/DashboardComponents/barchart.jsx - Pie chart → Employee context: reads data
frontend/src/appliccationPages/Dashboard/DashboardComponents/pieChart.jsx - Bar chart → Employee filters: uses filters
frontend/src/appliccationPages/Dashboard/DashboardComponents/barchart.jsx - Pie chart → Employee filters: uses filters
frontend/src/appliccationPages/Dashboard/DashboardComponents/pieChart.jsx - Workforce cards → Employee filters: uses filters
frontend/src/appliccationPages/Dashboard/DashboardComponents/eachcards.jsx - Protected app layout → Navigation sidebar: renders navigation
frontend/src/Browerspages/appLayout.jsx - Navigation sidebar → User context: reads user
frontend/src/sidebarcomponents/sideBar.jsx