How kushal721/construction-professionals-nepal works
This is a home-design marketplace for clients to discover professionals and designs, communicate, and arrange appointments; professionals manage profiles, designs, and availability, while admins have reporting and user-management views. The main flow runs from routed frontend pages to backend route handlers and MongoDB-backed models. The README gives no additional product detail, and several frontend and backend subsystems were not sampled, so their capabilities are represented from the file tree and SOURCE INDEX without asserting unverified call links.
Main entry points: App.js Frontend routes · requireAuth.js Token verification · designRoutes.js Design endpoints · appointmentRoutes.js Appointment endpoints
Components 34
Client marketplace
- Frontend routes
frontend/src/App.js - Design discovery
frontend/src/pages/Designs/Designs.js - Design details
frontend/src/pages/Designs/Description.js - Professional discovery
frontend/src/pages/Professionals/Professionals.js - Professional details
frontend/src/pages/Professionals/ProfessionalDesc.js - Saved designs
frontend/src/pages/Favorite/Favorite.js - Marketplace chat
frontend/src/pages/Chat/Chat.js - Appointment booking
frontend/src/pages/Booking/BookingForm.js - Client appointments
frontend/src/pages/Appointments/ClientAppointments.js
Professional workspace
- Manage designs
frontend/src/pages/ProfessionalSide/MyDesigns/MyDesignsDesc.js - Manage profile
frontend/src/pages/ProfessionalSide/ProfeProfile/EditProfile.js - Manage availability
frontend/src/pages/ProfessionalSide/Profe-Appointments/ProfeAppointments.js
API and domain
- Design endpoints
backend/routes/designRoutes.js - Appointment endpoints
backend/routes/appointmentRoutes.js - User endpoints
backend/routes/userRoutes.js - Authentication endpoints
backend/routes/authRoutes.js - Design operations
backend/controllers/designController.js - Appointment operations
backend/controllers/appointmentController.js - Professional operations
backend/controllers/professionalController.js - Account operations
backend/controllers/authController.js - Chat operations
backend/controllers/chatController.js - Message operations
backend/controllers/messageController.js - Report operations
backend/controllers/reportController.js
Identity and persistence
- Frontend auth state
frontend/src/context/AuthContext.js - Auth context hook
frontend/src/hooks/useAuthContext.js - Token verification
backend/middlewares/requireAuth.js - Image upload middleware
backend/middlewares/upload.js - User records
backend/models/User.js - Design records
backend/models/Design.js - Appointment records
backend/models/Appointment.js - Professional records
backend/models/Professional.js
Administration
- Admin management
frontend/src/pages/Admin SIde/List/UserList.js - Admin reports
frontend/src/pages/Admin SIde/AdminReport/Report.js
Other components
- Client or professional
Connections 35
- Client or professional → Frontend routes: opens
frontend/src/App.js - Frontend routes → Design discovery: routes to
frontend/src/App.js - Frontend routes → Design details: routes to
frontend/src/App.js - Frontend routes → Professional discovery: routes to
frontend/src/App.js - Frontend routes → Professional details: routes to
frontend/src/App.js - Frontend routes → Saved designs: routes to
frontend/src/App.js - Frontend routes → Marketplace chat: routes to
frontend/src/App.js - Frontend routes → Appointment booking: routes to
frontend/src/App.js - Frontend routes → Client appointments: routes to
frontend/src/App.js - Frontend routes → Manage designs: routes to
frontend/src/App.js - Frontend routes → Manage profile: routes to
frontend/src/App.js - Frontend routes → Manage availability: routes to
frontend/src/App.js - Frontend routes → Admin management: routes to
frontend/src/App.js - Frontend routes → Admin reports: routes to
frontend/src/App.js - Auth context hook → Frontend auth state: reads state
frontend/src/hooks/useAuthContext.js - Design endpoints → Design operations: dispatches
backend/routes/designRoutes.js - Design endpoints → Image upload middleware: uses uploads
backend/routes/designRoutes.js - Design endpoints → Token verification: guards routes
backend/routes/designRoutes.js - Appointment endpoints → Appointment operations: dispatches
backend/routes/appointmentRoutes.js - Appointment endpoints → Token verification: guards routes
backend/routes/appointmentRoutes.js - User endpoints → Professional operations: dispatches
backend/routes/userRoutes.js - User endpoints → Token verification: guards routes
backend/routes/userRoutes.js - User endpoints → Image upload middleware: uses uploads
backend/routes/userRoutes.js - Authentication endpoints → Account operations: dispatches
backend/routes/authRoutes.js - Authentication endpoints → Token verification: guards routes
backend/routes/authRoutes.js - Authentication endpoints → Image upload middleware: uses uploads
backend/routes/authRoutes.js - Appointment operations → Appointment records: reads and writes
backend/controllers/appointmentController.js - Appointment operations → User records: reads clients
backend/controllers/appointmentController.js - Professional operations → User records: queries users
backend/controllers/professionalController.js - Professional operations → Professional records: reads and writes
backend/controllers/professionalController.js - Design operations → Design records: reads and writes
backend/controllers/designController.js - Token verification → User records: loads user
backend/middlewares/requireAuth.js - Design details → Design endpoints: requests design data
- Appointment booking → Appointment endpoints: submits booking
- Client appointments → Appointment endpoints: requests bookings