How megha-bose/jobsplanet-mern-app works
JobsPlanet is a MERN job portal. The documented user-facing workflow is through a React frontend, with an Express API that handles account registration/login and job and application operations backed by MongoDB. Recruiters can post jobs and applicants can apply; the sampled backend implements these resource routes and schemas. The frontend source is not included in the supplied tree, so its behavior and exact API calls cannot be verified; the frontend-to-API link is shown as unverified.
Main entry points: server.js Express server · users.routes.js Account routes · users.model.js User profile · passport.js JWT authentication
Components 16
Client
- React frontend
frontend
API and authentication
- Express server
backend/server.js - Account routes
backend/routes/users.routes.js - Registration validation
backend/validations/register.js - Login validation
backend/validations/login.js - JWT authentication
backend/config/passport.js - JWT secret
backend/config/keys.js - Test endpoint
backend/routes/testAPI.js
Portal resources
- Job routes
backend/routes/job.routes.js - Application routes
backend/routes/application.routes.js - User profile
backend/models/users.model.js - Education details
backend/models/education.model.js - Job listing
backend/models/job.model.js - Job application
backend/models/application.model.js
Persistence
- MongoDB
Other components
- Portal user
Connections 19
- Portal user → React frontend: uses
README.md - React frontend → Express server: calls API
- Express server → Account routes: mounts /user
backend/server.js - Express server → Job routes: mounts /job
backend/server.js - Express server → Application routes: mounts /application
backend/server.js - Express server → Test endpoint: mounts /testAPI
backend/server.js - Express server → JWT authentication: configures
backend/server.js - Express server → MongoDB: connects
backend/server.js - Account routes → Registration validation: validates registration
backend/routes/users.routes.js - Account routes → Login validation: validates login
backend/routes/users.routes.js - Account routes → User profile: reads and writes
backend/routes/users.routes.js - JWT authentication → JWT secret: uses secret
backend/config/passport.js - JWT authentication → User profile: looks up user
backend/config/passport.js - Job routes → Job listing: reads and writes
backend/routes/job.routes.js - Application routes → Job application: reads and writes
backend/routes/application.routes.js - User profile → Education details: embeds schema
backend/models/users.model.js - User profile → MongoDB: persists records
- Job listing → MongoDB: persists records
- Job application → MongoDB: persists records