How pmj01/prepit works
PrepCore is a placement-preparation web app: students sign in, enter a dashboard, and access practice and interview-preparation features. The React dashboard also presents company plans, mock tests, Core CS, courses, and career tools. PHP provides account and practice-question endpoints backed by MySQL; a Java filter and coding-problems servlet are also present. The sampled excerpts show the frontend routing and PHP database calls, but not dashboard request implementations or Java wiring, so those connections are omitted or marked unverified.
Main entry points: Dashboard.jsx Dashboard shell · db_connect.php Database connection · App.jsx App routing · Login.jsx Sign-in
Components 20
Web application
- App routing
src/App.jsx - Sign-in
src/components/Login.jsx - Dashboard shell
src/components/Dashboard.jsx - Theme toggle
src/components/ThemeToggle.jsx - Particle background
src/components/ParticlesBackground.jsx
Preparation tools
- Practice bank
src/components/Dashboard.jsx - Company plans
src/components/Dashboard.jsx - Mock tests
src/components/Dashboard.jsx - Career tools
src/components/Dashboard.jsx
PHP services
- Login endpoint
backend-php/login.php - Signup endpoint
backend-php/signup.php - Auth middleware
backend-php/auth_middleware.php - Notes endpoint
backend-php/get_notes.php - Question endpoint
backend-php/get_practice_questions.php - Question seeder
backend-php/seed_practice_questions.php - Database connection
backend-php/db_connect.php - MySQL database
database/schema.sql
Java services
- Auth filter
backend-java/AuthFilter.java - Coding problems
backend-java/CodingProblemsServlet.java
Other components
- Student
Connections 18
- Student → App routing: opens
src/App.jsx - App routing → Sign-in: routes to
src/App.jsx - App routing → Dashboard shell: routes to
src/App.jsx - App routing → Particle background: renders
src/App.jsx - Dashboard shell → Theme toggle: renders
src/components/Dashboard.jsx - Sign-in → Login endpoint: posts credentials
src/components/Login.jsx - Sign-in → Signup endpoint: posts registration
src/components/Login.jsx - Login endpoint → Database connection: connects through
backend-php/login.php - Signup endpoint → Database connection: connects through
backend-php/signup.php - Auth middleware → Database connection: connects through
backend-php/auth_middleware.php - Notes endpoint → Auth middleware: requires
backend-php/get_notes.php - Question endpoint → Database connection: connects through
backend-php/get_practice_questions.php - Question seeder → Database connection: connects through
backend-php/seed_practice_questions.php - Database connection → MySQL database: accesses
- Dashboard shell → Practice bank: presents
src/components/Dashboard.jsx - Dashboard shell → Company plans: presents
src/components/Dashboard.jsx - Dashboard shell → Mock tests: presents
src/components/Dashboard.jsx - Dashboard shell → Career tools: presents
src/components/Dashboard.jsx