How vinayyx/git-plexigenius works
This is a CRM-style employee and lead management application with login and session handling. Users enter through the frontend login, then navigate a protected dashboard to view and manage employees and leads; backend routes dispatch requests to controllers, which persist records through models. Lead creation and updates also accept images through upload middleware. The supplied excerpts show backend routing and controller-to-model calls, but do not establish the frontend’s authentication or API-client wiring to those routes, so those connections are omitted.
Main entry points: App.jsx Route shell · Leads.jsx Lead page · Employee.jsx Employee page · app.js Express server
Components 27
Frontend experience
- Route shell
Frontend/src/App.jsx - Login page
Frontend/src/Pages/Login.jsx - Dashboard
Frontend/src/Pages/Dashboard.jsx - Navigation
Frontend/src/Pages/Sidebar.jsx - Shared UI state
Frontend/src/Context/Context.jsx
Authentication
- Auth endpoints
Backend/Routes/authRoutes.js - Auth controller
Backend/Controlers/authController.js - User records
Backend/Models/User.js - Token utilities
Backend/utils/jwt.js
Lead management
- Lead page
Frontend/src/Pages/Leads.jsx - Lead creation
Frontend/src/Components/AddLeadModal.jsx - Lead editor
Frontend/src/Components/EditLead.jsx - Lead deletion
Frontend/src/Components/DeleteLead.jsx - Lead endpoints
Backend/Routes/LeadsRoutes.js - Lead controller
Backend/Controlers/LeadController.js - Lead records
Backend/Models/Lead.js - Image upload
Backend/Config/multer.js
Employee management
- Employee page
Frontend/src/Pages/Employee.jsx - Employee forms
Frontend/src/Components/AddEmployeeModal.jsx - Employee editor
Frontend/src/Components/EditEmployee.jsx - Employee deletion
Frontend/src/Components/DeleteConfirmModal .jsx - Employee endpoints
Backend/Routes/employeeRoutes.js - Employee controller
Backend/Controlers/employeeController.js - Employee records
Backend/Models/employee.js
Backend services
- Express server
Backend/app.js - Database connection
Backend/Config/db.js
Other components
- CRM user
Connections 26
- CRM user → Route shell: uses
- Route shell → Login page: routes to
Frontend/src/App.jsx - Route shell → Dashboard: routes to
Frontend/src/App.jsx - Route shell → Navigation: renders
Frontend/src/App.jsx - Route shell → Employee page: routes to
Frontend/src/App.jsx - Route shell → Lead page: routes to
Frontend/src/App.jsx - Employee page → Employee forms: renders
Frontend/src/Pages/Employee.jsx - Employee page → Employee editor: renders
Frontend/src/Pages/Employee.jsx - Employee page → Employee deletion: renders
Frontend/src/Pages/Employee.jsx - Employee page → Shared UI state: reads state
Frontend/src/Pages/Employee.jsx - Lead page → Lead creation: renders
Frontend/src/Pages/Leads.jsx - Lead page → Lead editor: renders
Frontend/src/Pages/Leads.jsx - Lead page → Lead deletion: renders
Frontend/src/Pages/Leads.jsx - Lead page → Shared UI state: reads state
Frontend/src/Pages/Leads.jsx - Express server → Auth endpoints: mounts
Backend/app.js - Express server → Lead endpoints: mounts
Backend/app.js - Express server → Employee endpoints: mounts
Backend/app.js - Express server → Database connection: connects
Backend/app.js - Auth endpoints → Auth controller: dispatches
Backend/Routes/authRoutes.js - Auth controller → User records: reads and writes
Backend/Controlers/authController.js - Auth controller → Token utilities: signs tokens
Backend/Controlers/authController.js - Lead endpoints → Lead controller: dispatches
Backend/Routes/LeadsRoutes.js - Lead endpoints → Image upload: handles images
Backend/Routes/LeadsRoutes.js - Lead controller → Lead records: reads and writes
Backend/Controlers/LeadController.js - Employee endpoints → Employee controller: dispatches
Backend/Routes/employeeRoutes.js - Employee controller → Employee records: reads and writes
Backend/Controlers/employeeController.js