How afra012/tutorsphere works
TutorSphere is a two-sided tutor marketplace: students discover tutors or post requirements, tutors advertise services or respond to requirements, and both sides manage direct hire requests. The React application routes users to role-specific workflows and exchanges REST requests with Laravel, which applies business rules and persists marketplace data. Authentication, reviews, chat, subscriptions, location, and administration are additional product branches documented in the README. Backend wiring beyond the sampled controllers is represented only where documented; several feature-to-endpoint links use enclosing controller paths because their implementations were not sampled.
Main entry points: axios.js API client · database.php Application database · App.jsx Routes and app · StudentDashboard Student dashboard
Components 23
React experience
- Routes and app
frontend/src/App.jsx - API client
frontend/src/api/axios.js - Student dashboard
frontend/src/pages/StudentDashboard - Tutor dashboard
frontend/src/pages/TeacherDashboard - Sign-in and register
frontend/src/pages/Auth - Chat interface
frontend/src/pages/Chat/Chat.jsx - Review interface
frontend/src/pages/Reviews/Review.jsx - Admin dashboard
frontend/src/pages/AdminDashboard
Tutor marketplace
- Profiles and tutor search
backend/app/Http/Controllers/FindTutorController.php - Tutor service posts
backend/app/Http/Controllers/TutorPostController.php - Student requirements
backend/app/Http/Controllers/TeacherPostRequestController.php - Hire requests
backend/app/Http/Controllers/TuitionRequestController.php - Ratings and reviews
backend/app/Http/Controllers/ReviewController.php
Platform operations
- Authentication
backend/app/Http/Controllers/AuthController.php - Chat messages
backend/app/Http/Controllers/ChatMessageController.php - Subscriptions
backend/app/Http/Controllers/SubscriptionController.php - Administration
backend/app/Http/Controllers/AdminController.php - Location service
backend/app/Services/LocationService.php
Backend and data
- Application database
backend/config/database.php
Other components
- Student
- Tutor
- Administrator
- Google sign-in
Connections 35
- Student → Routes and app: uses
- Tutor → Routes and app: uses
- Administrator → Routes and app: uses
- Routes and app → Student dashboard: routes to
- Routes and app → Tutor dashboard: routes to
- Routes and app → Sign-in and register: routes to
- Routes and app → Chat interface: routes to
- Routes and app → Admin dashboard: routes to
- Student dashboard → API client: requests data
- Tutor dashboard → API client: requests data
- Sign-in and register → API client: requests auth
- Chat interface → API client: requests messages
- Review interface → API client: requests reviews
- Admin dashboard → API client: requests admin
- Student dashboard → Review interface: opens reviews
- API client → Profiles and tutor search: REST requests
- API client → Tutor service posts: REST requests
- API client → Student requirements: REST requests
- API client → Hire requests: REST requests
- API client → Ratings and reviews: REST requests
- API client → Authentication: REST requests
- API client → Chat messages: REST requests
- API client → Subscriptions: REST requests
- API client → Administration: REST requests
- Sign-in and register → Google sign-in: OAuth callback
- Profiles and tutor search → Application database: reads and writes
- Tutor service posts → Application database: reads and writes
- Student requirements → Application database: reads and writes
- Hire requests → Application database: reads and writes
- Ratings and reviews → Application database: reads and writes
- Authentication → Application database: reads and writes
- Chat messages → Application database: reads and writes
- Subscriptions → Application database: reads and writes
- Administration → Application database: reads and writes
- Location service → Application database: creates and updates