How dheerajrai-dev/campusloop works
CampusLoop is a campus-scoped peer exchange platform. Students authenticate, discover or post requests and listings, submit offers, accept a proposal, coordinate and confirm completion, then build reputation through reviews; services, messaging, exploration, and moderation are parallel capabilities. The React client calls the FastAPI API, whose domain routers operate over SQLAlchemy-backed data. README documentation establishes the broader workflow and feature branches; source excerpts directly show app startup wiring and service-page API usage, so unsampled domain links are cited to the README rather than asserted from inspected implementation.
Main entry points: v1 Versioned routers · App.tsx Web application · api.ts HTTP client · main.py FastAPI app
Components 23
Student application
- Web application
frontend/src/App.tsx - Authentication UI
frontend/src/features/auth - Auth context
frontend/src/context/AuthContext.tsx - Request board UI
frontend/src/features/requests - Marketplace UI
frontend/src/features/marketplace - Services UI
frontend/src/features/services - Activity and profile
frontend/src/features/activity - HTTP client
frontend/src/lib/api.ts
REST API
- FastAPI app
backend/app/main.py - Versioned routers
backend/app/api/v1 - Identity and campus
backend/app/api/v1/auth.py
Exchange lifecycle
- Requests and offers
backend/app/api/v1/requests.py - Transaction lifecycle
backend/app/api/v1/transactions.py - Listings
backend/app/api/v1/listings.py - Student services
backend/app/api/v1/services.py
Campus community
- Discovery and matching
backend/app/api/v1/explore.py - Profiles and reputation
backend/app/api/v1/users.py - Community moderation
backend/app/api/v1/moderation.py - Messages
backend/app/api/v1/messages.py
Data layer
- Database session
backend/app/db/session.py - Domain models
backend/app/models - Demo data seeding
backend/app/db/seed.py
Other components
- Student
Connections 26
- Student → Web application: uses
README.md - Web application → Authentication UI: routes to
README.md - Authentication UI → Auth context: authenticates via
README.md - Auth context → HTTP client: calls
frontend/src/context/AuthContext.tsx - Web application → Request board UI: routes to
README.md - Web application → Marketplace UI: routes to
README.md - Web application → Services UI: routes to
README.md - Web application → Activity and profile: routes to
README.md - Request board UI → HTTP client: submits requests
README.md - Marketplace UI → HTTP client: fetches listings
README.md - Services UI → HTTP client: fetches and books
frontend/src/features/services/ServiceDetailPage.tsx - Activity and profile → HTTP client: tracks activity
README.md - HTTP client → FastAPI app: sends API calls
README.md - FastAPI app → Versioned routers: mounts routes
backend/app/main.py - Versioned routers → Identity and campus: dispatches auth
README.md - Versioned routers → Requests and offers: dispatches requests
README.md - Requests and offers → Transaction lifecycle: creates on acceptance
README.md - Transaction lifecycle → Profiles and reputation: unlocks reviews
README.md - Versioned routers → Listings: dispatches listings
README.md - Versioned routers → Student services: dispatches services
README.md - Versioned routers → Discovery and matching: dispatches discovery
README.md - Versioned routers → Community moderation: dispatches reports
README.md - Versioned routers → Messages: dispatches messages
README.md - FastAPI app → Database session: initializes database
backend/app/main.py - FastAPI app → Demo data seeding: seeds when enabled
backend/app/main.py - Database session → Domain models: persists domain data