How mukesh00700/arenax works
ArenaX is a badminton player and match-management app. Users enter through the web UI to sign up, log in, and view or complete a profile; the backend also exposes profile, friend/team-request, challenge, and match APIs. Match controllers create matches and update player history, while domain models represent users, teams, requests, challenges, matches, notifications, and rankings. Evidence is limited to the supplied excerpts and SOURCE INDEX references; several backend subsystems and UI-to-API calls were not sampled, so those connections are omitted.
Main entry points: index.js HTTP server · App.jsx React entry and routes · requestController.js Friend and team requests · matchController.js Match operations
Components 31
Web interface
- React entry and routes
frontend/src/App.jsx - Login
frontend/src/pages/auth/Login.jsx - Sign up
frontend/src/pages/auth/SignUp.jsx - Profile view
frontend/src/pages/Profile.jsx - Profile completion
frontend/src/pages/CompleteProfile.jsx
Identity and profiles
- HTTP server
backend/index.js - Auth routes
backend/src/routes/auth.js - Authentication
backend/src/controllers/authController.js - Auth validation
backend/src/validators/authValidator.js - Welcome email
backend/src/utils/mailer.js - Profile routes
backend/src/routes/porfileRoutes.js - Profile operations
backend/src/controllers/profileController.js - Token verification
backend/src/middlewares/authMiddleware.js - Image upload
backend/src/config/cloudinary.js
Players and requests
- Request routes
backend/src/routes/request.js - Friend and team requests
backend/src/controllers/requestController.js - Request validation
backend/src/validators/requestValidator.js
Matches and challenges
- Challenge routes
backend/src/routes/challenge.js - Challenge operations
backend/src/controllers/challengeContorller.js - Match routes
backend/src/routes/match.js - Match operations
backend/src/controllers/matchController.js - Match validation
backend/src/validators/matchValidator.js
Domain records
- Database connection
backend/src/config/db.js - User records
backend/src/models/User.js - Team records
backend/src/models/Team.js - Request records
backend/src/models/Request.js - Challenge records
backend/src/models/Challenge.js - Match records
backend/src/models/Match.js - Notification records
backend/src/models/Notifications.js - Ranking records
backend/src/models/Ranking.js
Other components
- Player
Connections 37
- Player → React entry and routes: uses
- React entry and routes → Login: routes to
frontend/src/App.jsx - React entry and routes → Sign up: routes to
frontend/src/App.jsx - React entry and routes → Profile view: routes to
frontend/src/App.jsx - React entry and routes → Profile completion: routes to
frontend/src/App.jsx - HTTP server → Database connection: connects
backend/index.js - HTTP server → Auth routes: mounts
backend/index.js - HTTP server → Match routes: mounts
backend/index.js - HTTP server → Request routes: mounts
backend/index.js - HTTP server → Challenge routes: mounts
backend/index.js - HTTP server → Profile routes: mounts
backend/index.js - Auth routes → Authentication: dispatches
backend/src/routes/auth.js - Authentication → User records: reads and writes
backend/src/controllers/authController.js - Authentication → Auth validation: validates with
backend/src/controllers/authController.js - Authentication → Welcome email: sends email
backend/src/controllers/authController.js - Profile routes → Token verification: verifies token
backend/src/routes/porfileRoutes.js - Profile routes → Image upload: uploads through
backend/src/routes/porfileRoutes.js - Profile routes → Profile operations: dispatches
backend/src/routes/porfileRoutes.js - Profile operations → User records: reads and updates
backend/src/controllers/profileController.js - Profile operations → Image upload: uses upload config
backend/src/controllers/profileController.js - Request routes → Token verification: verifies token
backend/src/routes/request.js - Request routes → Friend and team requests: dispatches
backend/src/routes/request.js - Friend and team requests → Request validation: validates with
backend/src/controllers/requestController.js - Friend and team requests → Request records: reads and writes
backend/src/controllers/requestController.js - Friend and team requests → User records: reads and updates
backend/src/controllers/requestController.js - Friend and team requests → Team records: reads and creates
backend/src/controllers/requestController.js - Challenge routes → Token verification: verifies token
backend/src/routes/challenge.js - Challenge routes → Challenge operations: dispatches
backend/src/routes/challenge.js - Challenge operations → Challenge records: uses
backend/src/controllers/challengeContorller.js - Challenge operations → Match records: uses
backend/src/controllers/challengeContorller.js - Challenge operations → Team records: uses
backend/src/controllers/challengeContorller.js - Match routes → Token verification: verifies token
backend/src/routes/match.js - Match routes → Match operations: dispatches
backend/src/routes/match.js - Match operations → Match validation: validates with
backend/src/controllers/matchController.js - Match operations → Match records: creates and reads
backend/src/controllers/matchController.js - Match operations → User records: updates history
backend/src/controllers/matchController.js - Match operations → Team records: uses
backend/src/controllers/matchController.js