How ngocdai101004/intro2se-project-job-search works
Main Components
a. Frontend:
b. Backend:
• Inside, highlight components such as:
• Controllers (applicant, auth, chat, company, job, search, user) that handle business logic.
• Routes that expose API endpoints.
• Middlewares (verifyAdmin, verifyEmployee, verifyUser) that manage authentication/authorization.
• Models and Data Interfaces (e.g., applicationModel, chatModel, companyModel, jobModel etc.) indicating an MVC-ish design.
• Utility functions (token generation/decoding, email sending, and request slowdown).
• Configuration for database connection (MongoDB) and other settings.
c. Database:
• “MongoDB” as a separate component where all the persistent data (users, companies, job postings, chats) reside.
d. External Services:
• An “Email Service” (for confirmation emails, etc.), an “S3 Storage” (for assets like images uploaded in resumes or profiles), and a “Generative AI Service” (given by the Gemini API key variable).
Relationships and Interactions
• Optionally, detail internal data flows within the backend (e.g., from Routes → Controllers → Models) to capture the MVC flow and indicate the use of middleware for authentication and request validation.
Architectural Patterns and Design Principles
• That the backend follows an MVC pattern, separating concerns clearly across models, controllers, and routes.
• That the project’s overall design emphasizes a decoupled full-stack architecture (frontend and backend are separate modules) which improves scalability and maintenance.
• Secure transmission of data (JWT for authentication, middleware to verify user roles) and modular integration of external services.