How nitansh11/redbus works
Main Components
a. Frontend Layer:
• React Application (Client-Side)
• Core Components:
• Landing Page
• Bus Booking System
• Bus Hire System
• Payment Integration
• Authentication
• State Management (Redux Store)
• Auth
• Bus Service
• Routes
• Booking
• Filters/Sort
b. Backend Layer:
• Express.js Server
• API Controllers:
• Booking
• Bus
• Customer
• Route
• Bus Service
• Database Models (MongoDB/Mongoose)
c. External Services:
• Google Authentication
• Stripe Payment Gateway
• MongoDB Database
Specific Elements
Frontend Layer:
[React Client]
• Components
• Landing Page
• Bus Booking
• Bus Hire
• Payment
• Redux Store
• Auth State
• Booking State
• Route State
Backend Layer:
[Express Server]
• API Routes
• Controllers
• Models
• Middleware
Data Flow Representation
• User interaction flow:
1. User Authentication → Google Auth
2. Bus Search → Routes API
3. Booking Flow → Booking API
4. Payment Processing → Stripe
5. Data Persistence → MongoDB
Important Architectural Patterns to Highlight
• MVC Pattern in Backend
• Redux State Management
• RESTful API Architecture
• Microservices-like separation of concerns
Integration Points
• Google Authentication flow
• Stripe Payment integration
• Database connections
• API endpoints