How atharva12105/prep-connect works
PrepConnect is a role-aware career community for students, alumni, and administrators. The main journey is account access, then role-aware dashboards and pages for profiles, discussions, questions, experiences, directories, and mentorship; administrators also manage users and moderate content. React pages use shared authentication and an Axios client to reach an Express API, whose route handlers enforce access and query PostgreSQL. The README documents capabilities beyond the sampled route excerpts; those are retained under the content API, with uncertain client-to-feature calls marked dashed.
Main entry points: content.js Content and domain routes · App.jsx Route shell · api.js API client · auth.js Authentication routes
Components 24
Web client
- Route shell
frontend/src/App.jsx - Sign in / sign up
frontend/src/pages/Auth.jsx - Session state
frontend/src/context/AuthContext.jsx - API client
frontend/src/services/api.js - Role dashboards
frontend/src/pages/Dashboard.jsx - Community pages
frontend/src/pages/Community.jsx - Directory pages
frontend/src/pages/Directory.jsx - Profile page
frontend/src/pages/Profile.jsx - Workspace layout
frontend/src/components/Layout.jsx
API and access
- Express server
backend/src/server.js - Authentication routes
backend/src/routes/auth.js - Content and domain routes
backend/src/routes/content.js - JWT and role checks
backend/src/middleware/auth.js
Community features
- Discussions and replies
backend/src/routes/content.js - Questions and answers
backend/src/routes/content.js - Career experiences
backend/src/routes/content.js - Mentorship requests
backend/src/routes/content.js - Notifications
backend/src/routes/content.js
Directories and admin
- Profiles
backend/src/routes/content.js - Alumni and companies
backend/src/routes/content.js - Admin management
backend/src/routes/content.js
Persistent data
- SQL query access
backend/src/config/db.js - PostgreSQL
database/schema.sql
Other components
- Student / alumni / admin
Connections 28
- Student / alumni / admin → Sign in / sign up: signs in
frontend/src/pages/Auth.jsx - Sign in / sign up → Session state: submits credentials
frontend/src/pages/Auth.jsx - Session state → API client: requests session
frontend/src/context/AuthContext.jsx - Route shell → Sign in / sign up: routes to
frontend/src/App.jsx - Route shell → Role dashboards: routes to
frontend/src/App.jsx - Route shell → Community pages: routes to
frontend/src/App.jsx - Route shell → Directory pages: routes to
frontend/src/App.jsx - Route shell → Profile page: routes to
frontend/src/App.jsx - Route shell → Workspace layout: renders
frontend/src/App.jsx - Role dashboards → API client: fetches data
frontend/src/pages/Dashboard.jsx - Community pages → API client: fetches data
frontend/src/pages/Community.jsx - Directory pages → API client: fetches data
frontend/src/pages/Directory.jsx - Profile page → API client: fetches data
frontend/src/pages/Profile.jsx - Express server → Authentication routes: mounts routes
backend/src/server.js - Express server → Content and domain routes: mounts routes
backend/src/server.js - Authentication routes → JWT and role checks: authenticates user
backend/src/routes/auth.js - Authentication routes → SQL query access: queries
backend/src/routes/auth.js - Content and domain routes → JWT and role checks: checks permissions
backend/src/routes/content.js - Content and domain routes → SQL query access: queries
backend/src/routes/content.js - SQL query access → PostgreSQL: reads and writes
- Content and domain routes → Discussions and replies: serves
backend/src/routes/content.js - Content and domain routes → Questions and answers: serves
backend/src/routes/content.js - Content and domain routes → Career experiences: serves
backend/src/routes/content.js - Content and domain routes → Mentorship requests: serves
backend/src/routes/content.js - Content and domain routes → Notifications: creates and reads
backend/src/routes/content.js - Content and domain routes → Profiles: serves
backend/src/routes/content.js - Content and domain routes → Alumni and companies: serves
backend/src/routes/content.js - Content and domain routes → Admin management: serves
backend/src/routes/content.js