How harshitcore/placement-buddy works
Purpose and Current Scope
Placement Buddy is a role-oriented placement-support platform for students, TPO staff, professors, and alumni. The implemented repository is primarily a React frontend prototype; backend directories are placeholders and the README labels the API and AI services as future work.
Application Entry and Client Runtime
Vite bootstraps the TypeScript/React client from frontend/src/main.tsx, which mounts the root application in frontend/src/app.tsx. Styling is split between global styles in frontend/src/index.css, application styles in frontend/src/App.css, and component-local CSS where present. The frontend runs through Vite, configured at frontend/vite.config.ts.
Routing and Access Boundary
Client-side routes are centralized in frontend/src/routes/AppRoutes.tsx. frontend/src/routes/ProtectedRoute.tsx is the intended route authorization boundary, while authentication state is provided through frontend/src/context/AuthContext.tsx. This establishes the core control flow: application bootstrap → auth context → route selection/protection → role-specific page.
Role-Specific Dashboards
Separate dashboard pages model the platform’s major user roles:
• Student: frontend/src/pages/Student/StudentDashboard.tsx
• TPO: frontend/src/pages/TPO/TPODashboard.tsx
• Professor: frontend/src/pages/Professor/ProfessorDashboard.tsx
• Alumni: frontend/src/pages/Alumni/AlumniDashboard.tsx
These pages are the primary feature-composition boundary and should receive role-specific data and actions from service/API layers rather than owning transport logic.
Shared Dashboard Shell and UI Layer
Authenticated experiences are structured by frontend/src/components/layout/DashboardLayout.tsx, with navigation and top-level controls in frontend/src/components/layout/Sidebar.tsx and frontend/src/components/layout/Topbar.tsx. Menu definitions reside in frontend/src/constants/sidebarMenu.ts. Reusable primitives under frontend/src/components/layout/ui/ provide a common presentation layer for forms and dashboard modules.
Functional Feature Modules
Student placement workflows are represented as independent dashboard components: ATS/resume feedback in frontend/src/components/dashboard/ATSScoreCard.tsx, applications in frontend/src/components/dashboard/AppliedCompanies.tsx, company opportunities in frontend/src/components/dashboard/CompanyOpportunities.tsx, mentoring in frontend/src/components/dashboard/MentorConnect.tsx, and scheduling in frontend/src/components/dashboard/PlacementCalendar.tsx. Authentication forms are isolated under frontend/src/components/auth/.
Service, Backend, and Data Boundaries
The frontend defines client service seams in frontend/src/services/authService.ts and frontend/src/services/dashboardService.ts; these should become the sole browser-to-API transport boundary. The backend/app/models, backend/app/routes, and backend/app/services structure anticipates layered API implementation but currently contains no application code. The planned infrastructure is a Node.js/Express API plus Python FastAPI AI microservices, likely for ATS scoring. Persistent data design is anchored by database/schema.sql.
Main entry points: AppRoutes.tsx App Routes · app.tsx Root App · DashboardLayout.tsx Dashboard Shell · AuthContext.tsx Auth Context
Components 18
React Client
Implemented Vite frontend prototype.
- Vite Runtime
frontend/vite.config.ts - Client Entry
frontend/src/main.tsx - Root App
frontend/src/app.tsx - Dashboard Shell
frontend/src/components/layout/DashboardLayout.tsx - Sidebar and Topbar · Menu definitions are in the sidebar constants.
frontend/src/components/layout/Sidebar.tsx - Layout UI Primitives
- Client Services · Intended sole browser-to-API boundary.
frontend/src/services/authService.ts
Access Control
- Auth Context · Provides client authentication state.
frontend/src/context/AuthContext.tsx - App Routes
frontend/src/routes/AppRoutes.tsx - Protected Route
frontend/src/routes/ProtectedRoute.tsx
Role Experiences
- Student Dashboard
frontend/src/pages/Student/StudentDashboard.tsx - TPO Dashboard
frontend/src/pages/TPO/TPODashboard.tsx - Professor Dashboard
frontend/src/pages/Professor/ProfessorDashboard.tsx - Alumni Dashboard
frontend/src/pages/Alumni/AlumniDashboard.tsx - Student Placement Modules · ATS, applications, opportunities, mentoring, and calendar workflows.
frontend/src/components/dashboard/ATSScoreCard.tsx
Planned Backend
Backend and AI services are future work.
- Express API · Layered routes, services, and models are placeholders.
backend/app/routes - FastAPI AI Services · Planned ATS scoring capability.
- Database Schema
database/schema.sql
Connections 19
- Vite Runtime → Client Entry: boots
- Client Entry → Root App: mounts
- Root App → Auth Context: provides state
- Root App → App Routes: renders
- App Routes → Protected Route: guards routes
- Auth Context → Protected Route: supplies auth
- Protected Route → Dashboard Shell: admits authenticated views
- Dashboard Shell → Sidebar and Topbar: composes
- Dashboard Shell → Layout UI Primitives: uses
- App Routes → Student Dashboard: selects by role
- App Routes → TPO Dashboard: selects by role
- App Routes → Professor Dashboard: selects by role
- App Routes → Alumni Dashboard: selects by role
- Student Dashboard → Student Placement Modules: composes
- Auth Context → Client Services: auth operations
- Student Dashboard → Client Services: data and actions
- Client Services → Express API: future API calls
- Express API → FastAPI AI Services: delegates ATS scoring
- Express API → Database Schema: persists data