How hemantsinghpoonia/crm-system works
This MERN CRM supports account registration/login, password recovery, authenticated ticket creation and management, and a React dashboard/list/detail workflow. The graph follows frontend route and feature orchestration into the API, then the backend routers into authentication helpers and persistence. Email, reset-PIN storage, and ticket detail interactions are included as documented or indexed capabilities; some links are omitted where the sampled source does not establish the caller. The README describes broader customer/contact management, but the tree exposes only user and ticket domains.
Main entry points: App.jsx Application routes · user.router.js User routes · ticket.router.js Ticket routes · userApi.js User API client
Components 26
CRM frontend
- Application routes
frontend/src/App.jsx - Page layout
frontend/src/layout/DefaultLayout.jsx - Sign-in and reset
frontend/src/pages/entry/Entry.page.jsx - Login form
frontend/src/components/login/Login.comp.jsx - Login state
frontend/src/features/login/loginSlice.js - User API client
frontend/src/api/userApi.js - Dashboard
frontend/src/pages/dashboard/Dashboard.page.jsx - Ticket listing
frontend/src/pages/ticket-listing/TicketLists.page.jsx - Create ticket
frontend/src/components/add-ticket-form/AddTicketForm.comp.jsx - Ticket detail
frontend/src/pages/ticket/Ticket.page.jsx - Ticket actions
frontend/src/features/ticket/ticketActions.js - Ticket API client
frontend/src/api/ticketApi.js
Express API
- HTTP application
client-api/app.js - User routes
client-api/src/routers/user.router.js - Token refresh route
client-api/src/routers/token.router.js - Ticket routes
client-api/src/routers/ticket.router.js - Request validation
client-api/src/middlewares/validation.middleware.js
Identity and access
- Authorization middleware
client-api/src/middlewares/authorization.middleware.js - JWT services
client-api/src/helper/jwt.helper.js - Token cache
client-api/src/helper/redis.helper.js - Password hashing
client-api/src/helper/bcrypt.helper.js - Reset email
client-api/src/helper/email.helper.js
CRM data
- User records
client-api/src/model/user/User.model.js - Reset PIN records
client-api/src/model/reset-pin/resetPin.model.js - Ticket records
client-api/src/model/ticket/ticket.model.js
Other components
- CRM user
Connections 37
- CRM user → Application routes: uses
README.md - Application routes → User API client: checks session
frontend/src/App.jsx - Application routes → Login state: updates auth
frontend/src/App.jsx - Application routes → Page layout: renders routes
frontend/src/App.jsx - Application routes → Dashboard: routes to
frontend/src/App.jsx - Application routes → Sign-in and reset: routes to
frontend/src/App.jsx - Application routes → Ticket listing: routes to
frontend/src/App.jsx - Application routes → Ticket detail: routes to
frontend/src/App.jsx - Sign-in and reset → Login form: renders
frontend/src/pages/entry/Entry.page.jsx - Login form → User API client: submits login
frontend/src/components/login/Login.comp.jsx - Login form → Login state: dispatches
- Dashboard → Ticket actions: loads tickets
frontend/src/pages/dashboard/Dashboard.page.jsx - Ticket listing → Ticket actions: loads tickets
frontend/src/pages/ticket-listing/TicketLists.page.jsx - Ticket actions → Ticket API client: requests tickets
frontend/src/features/ticket/ticketActions.js - Create ticket → Ticket API client: submits ticket
- Ticket detail → Ticket API client: requests detail
- User API client → User routes: calls HTTP
frontend/src/api/userApi.js - User API client → Token refresh route: refreshes token
frontend/src/api/userApi.js - Ticket API client → Ticket routes: calls HTTP
- HTTP application → User routes: mounts route
client-api/app.js - HTTP application → Ticket routes: mounts route
client-api/app.js - HTTP application → Token refresh route: mounts route
client-api/app.js - User routes → Request validation: validates input
client-api/src/routers/user.router.js - Ticket routes → Request validation: validates input
client-api/src/routers/ticket.router.js - User routes → Authorization middleware: guards requests
client-api/src/routers/user.router.js - Ticket routes → Authorization middleware: guards requests
client-api/src/routers/ticket.router.js - Authorization middleware → JWT services: verifies token
client-api/src/middlewares/authorization.middleware.js - Authorization middleware → Token cache: checks token
client-api/src/middlewares/authorization.middleware.js - JWT services → Token cache: stores access token
client-api/src/helper/jwt.helper.js - JWT services → User records: stores refresh token
client-api/src/helper/jwt.helper.js - User routes → User records: reads and updates
client-api/src/routers/user.router.js - Token refresh route → JWT services: verifies and creates
client-api/src/routers/token.router.js - Token refresh route → User records: loads user
client-api/src/routers/token.router.js - User routes → Password hashing: hashes passwords
client-api/src/routers/user.router.js - User routes → Reset PIN records: manages PIN
client-api/src/routers/user.router.js - User routes → Reset email: sends reset mail
client-api/src/routers/user.router.js - Ticket routes → Ticket records: manages tickets
client-api/src/routers/ticket.router.js