How thanhgiau2604/hotel-room-management works
Main Components
A. Frontend Layer:
• Nuxt.js Application (Client-side)
• PrimeVue UI Components (extensive component library)
• Vue Store (Pinia) for state management
• Pages and Routing structure
B. Backend Layer:
• Nuxt Server-side components
• Firebase Integration
• Authentication Service
• Real-time Database/Firestore
┌─────────────────────────────────────────────────────────┐
• Client Browser │
• ┬─────────────────────────────┘
• ↓
┌─────────────────────────────────────────────────────────┐
• Nuxt.js Application │
• ┬─────────────────┬────────────────────┤
• Pages Layer │ Components │ Assets │
• /login │ - LeftPanel │ - PrimeVue CSS │
• /about │ - RoomCard │ - SCSS │
• ┬────────┴────────┬────────┴────────────────────┘
• ↓ ↓
┌────────────────┐ ┌──────────────────┐
• Store Layer │ │ Utils Layer │
• rooms.ts │ │ - firebase.ts │
• setting.ts │ │ - toast.ts │
• ┬────────┘ └─────────┬────────┘
• ↓ ↓
┌─────────────────────────────────────────────────────────┐
• Firebase Services │
• ┬─────────────────┬────────────────────┤
• Authentication │ Firestore/RTDB │ Cloud Functions │
• ┴─────────────────┴────────────────────┘
Important Elements to Highlight
a. Client-Side Features:
• Room management interface (RoomList, RoomCard)
• Authentication flow (/login)
• Modal components (CustomerInfo, RoomConfig)
• State management with Pinia stores
b. Firebase Integration:
• Real-time data synchronization
• Authentication services
• Database operations
Deployment Architecture
Deployment flow:
Development → Build → Production
(Local:3000) → (yarn build) → (Deployed Instance)
• The application's overall architecture
• How components interact with each other
• The data flow between frontend and Firebase
• The role of each major subsystem
• The deployment and build process