How anshulkavi/skillswap_platform works
SkillSwap is a skill-exchange and collaborative-learning platform. A user enters through the React app, authenticates, and can discover or publish skill listings, connect with other members, and use community, learning-video, leaderboard, and messaging features. FastAPI routes handle those domain actions, with authentication, schemas, and relational persistence as shared internal layers; chat and video calling also use WebSocket signaling. The graph reflects documented routes and indexed imports; several frontend feature pages and backend route implementations were not sampled, so unverified links are omitted or marked dashed.
Main entry points: main.py FastAPI application · database.py SQL database · AppRouter.jsx Route dispatch · skill_exchange.py Listings and requests
Components 24
React client
- App shell
SkillSwap-frontend/src/App.jsx - Route dispatch
SkillSwap-frontend/src/routes/AppRouter.jsx
Identity and profiles
- Auth state
SkillSwap-frontend/src/context/AuthContext.jsx - Login and signup
SkillSwap-backend/routers/login.py - Token validation
SkillSwap-backend/auth/dependencies.py - User profiles
SkillSwap-backend/routers/profile.py
Skill exchange
- Exchange browsing
SkillSwap-frontend/src/pages/SkillExchangePage.jsx - Listings and requests
SkillSwap-backend/routers/skill_exchange.py
Community and learning
- Community feed
SkillSwap-frontend/src/pages/CommunityPage.jsx - Community posts
SkillSwap-backend/routers/community.py - Learning videos
SkillSwap-frontend/src/pages/VideosPage.jsx - Video catalog
SkillSwap-backend/routers/videos.py - Leaderboard
SkillSwap-backend/routers/leaderboard.py
Real-time communication
- Chat interface
SkillSwap-frontend/src/pages/ChatLayout.jsx - WebSocket client
SkillSwap-frontend/src/hooks/useWebSocket.js - Chat routes
SkillSwap-backend/routers/chat.py - Video signaling
SkillSwap-backend/routers/video_call.py - Room connections
SkillSwap-backend/websocket_manager.py
API and persistence
- FastAPI application
SkillSwap-backend/main.py - SQL database
SkillSwap-backend/models/database.py - Domain models
SkillSwap-backend/models/models.py - API schemas
SkillSwap-backend/schemas.py
Other components
- Member
- Cloudinary storage
Connections 38
- Member → App shell: uses
README.md - App shell → Route dispatch: renders
SkillSwap-frontend/src/App.jsx - App shell → Auth state: provides auth
SkillSwap-frontend/src/App.jsx - Route dispatch → Auth state: checks auth
SkillSwap-frontend/src/routes/AppRouter.jsx - Route dispatch → Exchange browsing: routes to
SkillSwap-frontend/src/routes/AppRouter.jsx - Route dispatch → Community feed: routes to
SkillSwap-frontend/src/routes/AppRouter.jsx - Route dispatch → Learning videos: routes to
SkillSwap-frontend/src/routes/AppRouter.jsx - Route dispatch → Chat interface: routes to
SkillSwap-frontend/src/routes/AppRouter.jsx - Auth state → Login and signup: calls API
SkillSwap-frontend/src/context/AuthContext.jsx - Login and signup → Token validation: validates tokens
SkillSwap-backend/auth/dependencies.py - Login and signup → SQL database: reads and writes
SkillSwap-backend/routers/login.py - User profiles → SQL database: reads and writes
SkillSwap-backend/routers/profile.py - Exchange browsing → Listings and requests: requests listings
- Listings and requests → SQL database: reads and writes
SkillSwap-backend/routers/skill_exchange.py - Listings and requests → Token validation: requires user
SkillSwap-backend/routers/skill_exchange.py - Listings and requests → API schemas: validates data
SkillSwap-backend/routers/skill_exchange.py - Community feed → Community posts: requests feed
- Community posts → SQL database: reads and writes
SkillSwap-backend/routers/community.py - Community posts → Token validation: requires user
SkillSwap-backend/routers/community.py - Learning videos → Video catalog: requests videos
- Video catalog → SQL database: reads and writes
SkillSwap-backend/routers/videos.py - Video catalog → Cloudinary storage: uploads media
SkillSwap-backend/routers/videos.py - Leaderboard → SQL database: reads scores
SkillSwap-backend/routers/leaderboard.py - Chat interface → WebSocket client: uses socket
- WebSocket client → Chat routes: opens socket
- Chat routes → Room connections: broadcasts messages
SkillSwap-backend/routers/chat.py - Chat routes → SQL database: stores messages
SkillSwap-backend/routers/chat.py - Video signaling → Room connections: manages rooms
SkillSwap-backend/routers/video_call.py - FastAPI application → Login and signup: registers routes
SkillSwap-backend/main.py - FastAPI application → User profiles: registers routes
SkillSwap-backend/main.py - FastAPI application → Listings and requests: registers routes
SkillSwap-backend/main.py - FastAPI application → Community posts: registers routes
SkillSwap-backend/main.py - FastAPI application → Leaderboard: registers routes
SkillSwap-backend/main.py - FastAPI application → Video catalog: registers routes
SkillSwap-backend/main.py - FastAPI application → Chat routes: registers routes
SkillSwap-backend/main.py - FastAPI application → Video signaling: registers routes
SkillSwap-backend/main.py - FastAPI application → SQL database: creates tables
SkillSwap-backend/main.py - Domain models → SQL database: uses base
SkillSwap-backend/models/models.py