How mdreehal18/gigverse-freelancers.com works
GigVerse is a MERN freelancing marketplace. Clients and freelancers enter through the React app, authenticate, then clients post/manage jobs while freelancers browse and bid; accepting a bid creates a contract, with messaging and profiles supporting collaboration. The graph preserves these domain stages and the backend’s route/controller/model layers. README documents search/recommendations and real-time communication, but sampled files do not establish the recommendation implementation or real-time transport; message handling is shown without evidence of real-time delivery.
Main entry points: App.jsx Route application · server.js Express server · api.jsx HTTP API client · userRoutes.js User routes
Components 30
React experience
- Route application
frontend/src/App.jsx - Auth state
frontend/src/AuthContext.jsx - HTTP API client
frontend/src/api.jsx - Job discovery
frontend/src/pages/Jobs.jsx - Job proposals
frontend/src/pages/JobDetailed.jsx - Bid tracking
frontend/src/pages/Bids.jsx - Contract tracking
frontend/src/pages/Contracts.jsx - Contract detail
frontend/src/components/ContractDetail.jsx - Profile management
frontend/src/pages/Profile.jsx - Messaging interface
frontend/src/components/ChatBox.jsx
REST API
- Express server
backend/server.js - User routes
backend/routes/userRoutes.js - Job routes
backend/routes/jobRoutes.js - Bid routes
backend/routes/bidRoutes.js - Contract routes
backend/routes/contracts.js - Message routes
backend/routes/messagesRoutes.js - JWT authorization
backend/middleware/authMiddleware.js - Input validation
backend/middleware/validationMiddleware.js
Marketplace domain
- User accounts
backend/controllers/userController.js - Project management
backend/controllers/jobController.js - Proposals and acceptance
backend/controllers/bidController.js - Contract management
backend/controllers/contractController.js - Message handling
backend/controllers/messagesController.js
MongoDB records
- User records
backend/models/User.js - Job records
backend/models/Job.js - Bid records
backend/models/bidModel.js - Contract records
backend/models/Contract.js - Message records
backend/models/Message.js
Other components
- Client or freelancer
- MongoDB
Connections 47
- Client or freelancer → Route application: uses
README.md - Route application → Auth state: reads auth
frontend/src/App.jsx - Route application → Job discovery: routes to
frontend/src/App.jsx - Route application → Job proposals: routes to
frontend/src/App.jsx - Route application → Bid tracking: routes to
frontend/src/App.jsx - Route application → Contract tracking: routes to
frontend/src/App.jsx - Route application → Contract detail: routes to
frontend/src/App.jsx - Route application → Profile management: routes to
frontend/src/App.jsx - Auth state → HTTP API client: sets auth token
frontend/src/AuthContext.jsx - Job discovery → HTTP API client: uses requests
frontend/src/pages/Jobs.jsx - Job proposals → HTTP API client: uses requests
frontend/src/pages/JobDetailed.jsx - Contract tracking → HTTP API client: uses requests
frontend/src/pages/Contracts.jsx - Contract detail → HTTP API client: uses requests
frontend/src/components/ContractDetail.jsx - Profile management → HTTP API client: uses requests
frontend/src/pages/Profile.jsx - Messaging interface → HTTP API client: uses requests
frontend/src/components/ChatBox.jsx - HTTP API client → Express server: HTTP requests
README.md - Express server → User routes: mounts
backend/server.js - Express server → Job routes: mounts
backend/server.js - Express server → Bid routes: mounts
backend/server.js - Express server → Contract routes: mounts
backend/server.js - Express server → Message routes: mounts
backend/server.js - User routes → User accounts: dispatches
backend/routes/userRoutes.js - Job routes → Project management: dispatches
backend/routes/jobRoutes.js - Bid routes → Proposals and acceptance: dispatches
backend/routes/bidRoutes.js - Contract routes → Contract management: dispatches
backend/routes/contracts.js - Message routes → Message handling: dispatches
backend/routes/messagesRoutes.js - User routes → JWT authorization: protects routes
backend/routes/userRoutes.js - Job routes → JWT authorization: protects routes
backend/routes/jobRoutes.js - Bid routes → JWT authorization: protects routes
backend/routes/bidRoutes.js - User routes → Input validation: validates input
backend/routes/userRoutes.js - Job routes → Input validation: validates input
backend/routes/jobRoutes.js - Bid routes → Input validation: validates input
backend/routes/bidRoutes.js - JWT authorization → User records: loads user
backend/middleware/authMiddleware.js - User accounts → User records: manages users
backend/controllers/userController.js - Project management → Job records: manages jobs
backend/controllers/jobController.js - Proposals and acceptance → Bid records: manages bids
backend/controllers/bidController.js - Proposals and acceptance → Job records: updates job
backend/controllers/bidController.js - Proposals and acceptance → Contract records: creates contract
backend/controllers/bidController.js - Contract management → Contract records: manages contracts
backend/controllers/contractController.js - Message handling → Message records: manages messages
backend/controllers/messagesController.js - Express server → MongoDB: connects
backend/server.js - User records → MongoDB: persists
- Job records → MongoDB: persists
- Bid records → MongoDB: persists
- Contract records → MongoDB: persists
- Message records → MongoDB: persists
- Client or freelancer → Client or freelancer: searches recommendations
README.md