How shashwatnarwal9/campusgig works
CampusGig is a student-only gig marketplace, with a workflow from institutional-email signup through gig applications, escrow-backed contracts, delivery, review or dispute, and ratings. The React frontend calls a FastAPI backend, whose services implement the marketplace and money rules over PostgreSQL. Separate capabilities include profile-file storage, timeout handling, and administrator oversight. The graph preserves documented capabilities even where their implementation was not sampled; those edges cite the README, and unsampled implementation details are represented at their existing directory paths.
Main entry points: main.py FastAPI application · AppRoutes.tsx App routes · contract_service.py Contract and delivery services · apiClient.ts API client
Components 25
Student interface
- App routes
code/frontend/src/routes/AppRoutes.tsx - API client
code/frontend/src/services/apiClient.ts - Auth interface
code/frontend/src/context/AuthProvider.tsx - Gig and application pages
code/frontend/src/pages/GigsPage.tsx - Contract pages
code/frontend/src/pages/ContractsPage.tsx - Wallet page
code/frontend/src/pages/WalletPage.tsx - Admin pages
code/frontend/src/pages/AdminOverviewPage.tsx
Identity and profiles
- FastAPI application
code/backend/app/main.py - Authentication service
code/backend/app/services/auth_service.py - Profile services
code/backend/app/services/profile_service.py
Gig marketplace
- Gig services
code/backend/app/services/gig_service.py - Application services
code/backend/app/services/application_service.py
Contracts and money
- Contract and delivery services
code/backend/app/services/contract_service.py - Escrow and ledger
code/backend/app/services/escrow_service.py - Payment services
code/backend/app/services/payment_service.py - Ratings and reputation
code/backend/app/services/rating_service.py - Media and deliverables
code/backend/app/services/storage_service.py
Operations and oversight
- Timeout sweeper
code/backend/app/jobs/sweeper.py - Administration and disputes
code/backend/app/services/admin_service.py - Ledger reconciliation
code/backend/app/services/reconciliation_service.py - Audit log
code/backend/app/repositories/audit_repo.py
Other components
- Student
- Administrator
- Razorpay
- PostgreSQL data
code/backend/app/db/session.py
Connections 35
- Student → App routes: uses
README.md - Administrator → App routes: uses
README.md - App routes → Auth interface: routes to
code/frontend/src/routes/AppRoutes.tsx - App routes → Gig and application pages: routes to
code/frontend/src/routes/AppRoutes.tsx - App routes → Contract pages: routes to
code/frontend/src/routes/AppRoutes.tsx - App routes → Wallet page: routes to
code/frontend/src/routes/AppRoutes.tsx - App routes → Admin pages: routes to
code/frontend/src/routes/AppRoutes.tsx - Auth interface → API client: requests through
code/frontend/src/context/AuthProvider.tsx - Gig and application pages → API client: requests through
- Contract pages → API client: requests through
- Wallet page → API client: requests through
- Admin pages → API client: requests through
code/frontend/src/pages/AdminOverviewPage.tsx - API client → FastAPI application: sends HTTP
- FastAPI application → Authentication service: serves auth
- FastAPI application → Profile services: serves profile
- FastAPI application → Gig services: serves gigs
- FastAPI application → Application services: serves applications
- FastAPI application → Contract and delivery services: serves contracts
- FastAPI application → Payment services: serves wallet
- FastAPI application → Administration and disputes: serves admin
- Authentication service → PostgreSQL data: stores sessions
code/backend/app/services/auth_service.py - Gig services → Application services: supports applications
code/backend/app/services/application_service.py - Application services → Contract and delivery services: awards work
code/backend/app/services/application_service.py - Application services → Escrow and ledger: funds award
code/backend/app/services/application_service.py - Contract and delivery services → Escrow and ledger: settles escrow
README.md - Contract and delivery services → Media and deliverables: handles delivery
README.md - Media and deliverables → PostgreSQL data: stores media
code/backend/app/services/storage_service.py - Payment services → Razorpay: verifies payments
- Razorpay → Payment services: sends webhook
README.md - Contract and delivery services → Ratings and reputation: enables ratings
README.md - Timeout sweeper → PostgreSQL data: checks deadlines
code/backend/app/jobs/sweeper.py - Timeout sweeper → Contract and delivery services: settles timeouts
README.md - Administration and disputes → Ledger reconciliation: runs report
README.md - Administration and disputes → Audit log: records actions
README.md - Administration and disputes → Contract and delivery services: rules disputes
README.md