How adidev1512006/skillswap works
SkillSwap is a browser-based skill-exchange platform. Users browse skills and teachers, request or offer skills, book sessions, and use related community features. The frontend calls an Express API, whose routes implement domain operations using a MySQL connection. The README lists additional capabilities beyond the sampled code; those are represented at the route subsystem level where their implementation details were not shown. The graph keeps browser-to-API flow distinct from backend database access; unsampled route details are not expanded into unsupported call chains.
Main entry points: db.js MySQL connection · script.js SkillSwap UI · server.js HTTP server · routes.js Accounts and profiles
Components 13
Browser client
- SkillSwap UI
frontend/script.js
API and domain
- HTTP server
backend/server.js - Accounts and profiles
backend/routes/routes.js - Skills and requests
backend/routes/routes.js - Teacher matching
backend/routes/routes.js - Session booking
backend/routes/routes.js - Messaging
backend/routes/routes.js - Reviews and ratings
backend/routes/routes.js - Favorites and alerts
backend/routes/routes.js - Dashboard stats
backend/routes/routes.js
Persistence
- MySQL connection
backend/db.js - MySQL database
backend/sql/skill_exchange_complete.sql
Other components
- Platform user
Connections 18
- Platform user → SkillSwap UI: uses
frontend/script.js - SkillSwap UI → HTTP server: calls API
frontend/script.js - HTTP server → Accounts and profiles: mounts routes
backend/server.js - SkillSwap UI → Skills and requests: manages skills
frontend/script.js - SkillSwap UI → Teacher matching: finds teachers
frontend/script.js - SkillSwap UI → Session booking: books sessions
frontend/script.js - SkillSwap UI → Messaging: sends messages
frontend/script.js - SkillSwap UI → Reviews and ratings: submits reviews
frontend/script.js - HTTP server → MySQL connection: tests connection
backend/server.js - Accounts and profiles → MySQL connection: queries
backend/routes/routes.js - Skills and requests → MySQL connection: queries
backend/routes/routes.js - Teacher matching → MySQL connection: queries
backend/routes/routes.js - Session booking → MySQL connection: queries
backend/routes/routes.js - Messaging → MySQL connection: queries
backend/routes/routes.js - Reviews and ratings → MySQL connection: queries
backend/routes/routes.js - Favorites and alerts → MySQL connection: queries
backend/routes/routes.js - Dashboard stats → MySQL connection: queries
backend/routes/routes.js - MySQL connection → MySQL database: connects
backend/db.js