How simplyolga/group5marathon2 works
React Jobs Project provides two React frontends: a simplified CRUD experience and a fuller version with sign-up and login. Users browse job listings and details; the fuller version also supports authenticated job creation, editing, and deletion. The repository includes a mock-server option and a separate Express/Mongoose API with job and user routes. Several frontend/API connections are not shown in sampled source, so those links are marked unverified rather than asserted as direct calls.
Main entry points: src/App.jsx Routes and job actions · src/App.jsx Simplified routes · app.js Express entry point · jobRouter.js Job routes
Components 25
Simplified frontend
- Simplified routes
frontend-simplified/src/App.jsx - Home and listings
frontend-simplified/src/pages/HomePage.jsx - Job list UI
frontend-simplified/src/components/JobListings.jsx - Job details
frontend-simplified/src/pages/JobPage.jsx - Create job form
frontend-simplified/src/pages/AddJobPage.jsx - Edit job form
frontend-simplified/src/pages/EditJobPage.jsx
Full frontend
- Routes and job actions
frontend/src/App.jsx - Navigation layout
frontend/src/layouts/MainLayout.jsx - Home and listings
frontend/src/pages/HomePage.jsx - Job list UI
frontend/src/components/JobListings.jsx - Job details
frontend/src/pages/JobPage.jsx - Create job form
frontend/src/pages/AddJobPage.jsx - Edit job form
frontend/src/pages/EditJobPage.jsx - Sign-in and signup
frontend/src/pages/Login.jsx
API server
- Express entry point
backend/api-server-starter/app.js - Job routes
backend/api-server-starter/routes/jobRouter.js - User routes
backend/api-server-starter/routes/userRouter.js - Token authorization
backend/api-server-starter/middleware/requireAuth.js - Database connection setup
backend/api-server-starter/config/db.js
Job and user domain
- Job operations
backend/api-server-starter/controllers/jobControllers.js - User operations
backend/api-server-starter/controllers/userControllers.js - Job records
backend/api-server-starter/models/jobModel.js - User records
backend/api-server-starter/models/userModel.js
Other components
- Job seeker / poster
- Mock JSON server
Connections 28
- Job seeker / poster → Simplified routes: uses
- Job seeker / poster → Routes and job actions: uses
- Simplified routes → Home and listings: routes to
frontend-simplified/src/App.jsx - Simplified routes → Job list UI: routes via
- Simplified routes → Job details: routes to
frontend-simplified/src/App.jsx - Simplified routes → Create job form: routes to
frontend-simplified/src/App.jsx - Simplified routes → Edit job form: routes to
frontend-simplified/src/App.jsx - Home and listings → Job list UI: uses
frontend-simplified/src/pages/HomePage.jsx - Routes and job actions → Navigation layout: renders
frontend/src/App.jsx - Routes and job actions → Home and listings: routes to
frontend/src/App.jsx - Routes and job actions → Job details: routes to
frontend/src/App.jsx - Routes and job actions → Create job form: routes to
frontend/src/App.jsx - Routes and job actions → Edit job form: routes to
frontend/src/App.jsx - Routes and job actions → Sign-in and signup: routes to
frontend/src/App.jsx - Home and listings → Job list UI: uses
frontend/src/pages/HomePage.jsx - Routes and job actions → Express entry point: requests API
- Simplified routes → Mock JSON server: uses API
- Routes and job actions → Mock JSON server: uses API
- Express entry point → Job routes: mounts routes
backend/api-server-starter/app.js - Express entry point → User routes: mounts routes
backend/api-server-starter/app.js - Express entry point → Database connection setup: connects database
backend/api-server-starter/app.js - Job routes → Job operations: dispatches to
backend/api-server-starter/routes/jobRouter.js - Job routes → Token authorization: guards writes
backend/api-server-starter/routes/jobRouter.js - User routes → User operations: dispatches to
backend/api-server-starter/routes/userRouter.js - User routes → Token authorization: guards profile
backend/api-server-starter/routes/userRouter.js - Job operations → Job records: reads and writes
backend/api-server-starter/controllers/jobControllers.js - User operations → User records: reads and writes
backend/api-server-starter/controllers/userControllers.js - Token authorization → User records: loads user
backend/api-server-starter/middleware/requireAuth.js