How shaswat2031/minor-project-university-connect works
Frontend Components
• User Interface (React components, e.g., App.jsx, pages for Home, Login, Register, Student Connect, Talent Marketplace, Certification, etc.).
• Client-side Routing (React Router, Protected Route component).
• API Calls (Axios/Fetch requests defined in src/api and services folders).
• Development and build tools (Vite, Tailwind CSS).
Backend Components
• Express Server: Include components such as routing, middleware (authMiddleware, authController), and server (server.js).
• API Endpoints: Group endpoints by function (authentication, profile management, student connect, certification, talent marketplace).
• Business Logic: Represent logical components like JWT authentication, certificate generation with pdfkit, and file storage for certificates.
• Mention that the backend is built on Node.js and Express.
Database
• A database component labeled “MongoDB (via Mongoose)” to represent persistent data storage.
Additional Infrastructure
• Environment/configuration management using .env files for both the frontend (if needed) and the backend.
Architectural Patterns & Design Principles
• Separation of concerns: the frontend solely handles the user interface (UI, client-side routing, state management) and delegates business logic and authentication to the backend.
• Mention that the backend follows a RESTful API design pattern, which organizes endpoints by function.
• JWT Authentication for securing API endpoints.
• Use of middleware layers that intercept API requests for authentication and authorization.