How curious9rahul/athnexus-smart-athlete-enablement-scouting-platform-using-ml works
AthNexus is an athlete enablement and scouting platform: athletes authenticate, complete profiles, discover events and submit registrations; verifiers manage events and review registrations, with smart ranking and analytics as supporting capabilities. The React app routes users into role-specific pages, while hooks call the Express API. Authentication persists users through the User model, and event registration and moderation are handled by the backend. A separate Flask inference service exposes selection predictions. Email and some service wiring are only partially evidenced in the supplied excerpts, so uncertain connections are omitted.
Main entry points: App.tsx App routing · useEvents.ts Event operations · server.cjs Express API · AuthContext.tsx Session and profile state
Components 23
Web application
- App routing
app/src/App.tsx
Identity and profiles
- Sign-in and signup
app/src/pages/AuthPage.tsx - Session and profile state
app/src/context/AuthContext.tsx - Authentication API
backend/routes/auth.js - User records
backend/models/User.js - Athlete profile
app/src/pages/ProfileForm.tsx
Events and review
- Event operations
app/src/hooks/useEvents.ts - Event registration form
app/src/components/RegistrationFormModal.tsx - Event discovery and details
app/src/pages/dashboard/events/pages/EventPage.tsx - Athlete dashboard
app/src/pages/dashboard/EventsPage.tsx - Verifier event review
app/src/pages/verifier/EventApprovalPage.tsx - Registration review
app/src/pages/verifier/RegistrationApprovalPage.tsx - User administration
app/src/pages/verifier/UserManagementPage.tsx
Scouting and insights
- Smart ranking
app/src/pages/verifier/SmartRankingPage.tsx - Athlete dataset access
app/src/hooks/useAthletes.ts - Event analytics
app/src/pages/dashboard/Analytics.tsx
Platform services
- Express API
backend/server.cjs - ML endpoints
backend/routes/ml.js - Selection inference
backend/ml/inference_api.py - Email notifications
backend/server.cjs
Other components
- Athlete
- Verifier
- Resend email service
Connections 30
- Athlete → App routing: uses
- Verifier → App routing: uses
- App routing → Sign-in and signup: routes to
- App routing → Session and profile state: provides session
- App routing → Event discovery and details: routes to
- App routing → Athlete dashboard: routes to
- App routing → Verifier event review: routes to
- Athlete → Sign-in and signup: signs in
- Sign-in and signup → Session and profile state: authenticates
- Session and profile state → Authentication API: requests session
- Authentication API → User records: reads and updates
- Athlete → Athlete profile: completes profile
- Athlete profile → Session and profile state: updates profile
- Event discovery and details → Event operations: loads events
- Athlete dashboard → Event operations: loads events
- Athlete → Event registration form: submits details
- Event registration form → Event operations: registers athlete
- Event operations → Express API: requests event actions
- Verifier event review → Event operations: reviews events
- Registration review → Event operations: reviews registrations
- Event operations → Express API: sends review actions
- User administration → Express API: manages users
- Express API → Authentication API: mounts auth routes
- Express API → ML endpoints: mounts ML routes
- Smart ranking → ML endpoints: requests ranking
- ML endpoints → Selection inference: invokes inference
- Smart ranking → Athlete dataset access: loads athlete data
- Athlete dashboard → Event analytics: opens analytics
- Express API → Email notifications: handles email endpoints
- Email notifications → Resend email service: sends mail