How arqam365/grabbix works
Main Components
a. Client-Side Layer:
• Pages (Home, About, Products, Contact, Admin)
• Client-side Components (MobileNav)
• Static Assets (public directory)
b. Next.js Framework Layer:
• App Router (new Next.js 13+ feature)
• Server Components
• Client Components
• API Routes
c. Backend Services:
• Firebase Integration (shown by firebase.ts)
• Email Service (indicated by api/send-email)
d. Build & Optimization Layer:
• Build tools and configurations:
• Tailwind CSS
• TypeScript
• PostCSS
Component Relationships
• Client requests → App Router → Server Components
• API Routes → External Services (Firebase, Email)
• Build Tools → Output Bundle
• Static Assets → CDN
Specific Implementation Details
• Blue: Next.js components
• Orange: Firebase services
• Green: API routes
• Purple: Build tools
• Grey: Static assets
┌─────────────────────────────────────┐
• Client Layer │
• ┤
• Next.js App Router │
• ┤
• Server Components │ API Routes │
• ┤
• External Services (Firebase/Email) │
• ┘
Important Elements to Highlight
• App Router Architecture:
• Hierarchical routing structure (/about, /products, /contact, /admin)
• Api/send-email route
• Server vs. client components
• Integration Points:
• Firebase connection
• Email service integration
• Static asset delivery