How charan300804/gigflow works
GigFlow is a two-sided freelance marketplace. Clients post gigs, review freelancer bids, and hire; freelancers browse open gigs and submit proposals. The frontend’s routed pages use an Axios client to reach the Express API, while Redux holds session and gig state. Backend route handlers enforce authentication where needed and coordinate MongoDB models; hiring also emits a socket notification to the selected freelancer. The README documents dashboards and real-time alerts; those capabilities are represented without assuming unsampled implementation details beyond the documented links.
Main entry points: App.jsx SPA Router · axios.js HTTP Client · GigDetail.jsx Gig Detail · server.js Express Server
Components 29
Marketplace UI
- SPA Router
frontend/src/App.jsx - Gig Browse
frontend/src/pages/Home.jsx - Gig Detail
frontend/src/pages/GigDetail.jsx - Post Gig
frontend/src/pages/CreateGig.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Sign In / Up
frontend/src/pages/Login.jsx - Gig Card
frontend/src/components/GigCard.jsx - Bid Form
frontend/src/components/BidForm.jsx - Bid List
frontend/src/components/BidList.jsx - HTTP Client
frontend/src/api/axios.js - Auth State
frontend/src/store/slices/authSlice.js - Gig State
frontend/src/store/slices/gigSlice.js
API and Security
- Express Server
backend/src/server.js - Auth Routes
backend/src/routes/authRoutes.js - Gig Routes
backend/src/routes/gigRoutes.js - Bid Routes
backend/src/routes/bidRoutes.js - Auth Logic
backend/src/controllers/authController.js - Gig Logic
backend/src/controllers/gigController.js - Bid and Hire
backend/src/controllers/bidController.js - Cookie Auth
backend/src/middleware/auth.js
Marketplace Data
- User Records
backend/src/models/User.js - Gig Records
backend/src/models/Gig.js - Bid Records
backend/src/models/Bid.js
Live Notifications
- Socket Setup
backend/src/config/socket.js - Socket Client
frontend/src/socket.js
Other components
- Freelancer
- Client
- MongoDB
- Socket.io
Connections 46
- Freelancer → SPA Router: uses
README.md - Client → SPA Router: uses
README.md - SPA Router → Gig Browse: routes to
frontend/src/App.jsx - SPA Router → Gig Detail: routes to
frontend/src/App.jsx - SPA Router → Post Gig: routes to
frontend/src/App.jsx - SPA Router → Dashboard: routes to
frontend/src/App.jsx - SPA Router → Sign In / Up: routes to
frontend/src/App.jsx - SPA Router → Auth State: dispatches
frontend/src/App.jsx - SPA Router → Socket Client: connects via
frontend/src/App.jsx - Gig Browse → HTTP Client: requests through
frontend/src/pages/Home.jsx - Gig Browse → Gig State: updates
frontend/src/pages/Home.jsx - Gig Browse → Gig Card: renders
frontend/src/pages/Home.jsx - Gig Detail → HTTP Client: requests through
frontend/src/pages/GigDetail.jsx - Gig Detail → Gig State: updates
frontend/src/pages/GigDetail.jsx - Gig Detail → Bid Form: renders
frontend/src/pages/GigDetail.jsx - Gig Detail → Bid List: renders
frontend/src/pages/GigDetail.jsx - Post Gig → HTTP Client: requests through
frontend/src/pages/CreateGig.jsx - Post Gig → Gig State: updates
frontend/src/pages/CreateGig.jsx - Dashboard → HTTP Client: requests through
frontend/src/pages/Dashboard.jsx - Dashboard → Gig State: updates
frontend/src/pages/Dashboard.jsx - Dashboard → Gig Card: renders
frontend/src/pages/Dashboard.jsx - Sign In / Up → HTTP Client: requests through
frontend/src/pages/Login.jsx - Sign In / Up → Auth State: updates
frontend/src/pages/Login.jsx - HTTP Client → Express Server: sends API requests
frontend/src/api/axios.js - Express Server → Auth Routes: mounts
backend/src/server.js - Express Server → Gig Routes: mounts
backend/src/server.js - Express Server → Bid Routes: mounts
backend/src/server.js - Express Server → Socket Setup: initializes
backend/src/server.js - Auth Routes → Auth Logic: routes to
backend/src/routes/authRoutes.js - Auth Routes → Cookie Auth: protects routes
backend/src/routes/authRoutes.js - Gig Routes → Gig Logic: routes to
backend/src/routes/gigRoutes.js - Gig Routes → Cookie Auth: protects routes
backend/src/routes/gigRoutes.js - Bid Routes → Bid and Hire: routes to
backend/src/routes/bidRoutes.js - Bid Routes → Cookie Auth: protects routes
backend/src/routes/bidRoutes.js - Cookie Auth → User Records: loads user
backend/src/middleware/auth.js - Auth Logic → User Records: reads and writes
backend/src/controllers/authController.js - Gig Logic → Gig Records: reads and writes
backend/src/controllers/gigController.js - Bid and Hire → Gig Records: reads and updates
backend/src/controllers/bidController.js - Bid and Hire → Bid Records: reads and updates
backend/src/controllers/bidController.js - Socket Setup → Socket.io: configures
README.md - Socket Client → Socket.io: connects to
README.md - Bid and Hire → Socket Setup: gets socket
backend/src/controllers/bidController.js - Socket.io → Freelancer: notifies hire
README.md - MongoDB → User Records: persists
README.md - MongoDB → Gig Records: persists
README.md - MongoDB → Bid Records: persists
README.md