How measses/hotel-project-peoplebox-bootcamp-final-project works
Main Components
A. Frontend Layer (React Application)
• User Interface Components
• Authentication pages (Login, Register, VerifyEmail)
• Dashboard/Home components
• Management interfaces (Rooms, Reservations, Finance)
• Common components (Navbar, Footer)
• State Management
• Redux store with multiple slices
• Action handlers
B. Backend Layer (PHP REST API)
• Authentication Service
• Core Services
• Room Management
• Reservation Management
• Financial Management (Revenue/Expense)
• User Management
• Todo Management
• Database Layer
• File Storage System
C. Database (MySQL)
• User data
• Room information
• Reservations
• Financial records
• Todo items
[Client Layer]
• ↓ ↑
[API Gateway]
• ↓ ↑
[Service Layer]
• ↓ ↑
[Data Layer]
Key Relationships to Highlight
• Frontend-Backend communication via REST API
• Authentication flow
• Data flow between services
• File upload handling
• Database interactions
Specific Implementation Details
Frontend:
• React components hierarchy
• Redux store and slices
• Routing structure
Backend:
• API endpoints grouping
• Database connection handling
• Authentication middleware
• File upload handling
Important Elements
• Security layers (authentication, authorization)
• Role-based access control (Admin vs User)
• Session management
• File storage system
• Email verification system
Technical Stack Indicators
Frontend:
• React
• Redux
• Ant Design
• Tailwind CSS
Backend:
• PHP
• MySQL
• RESTful API
• PHP PDO