How robertoumbelino/commemorative-dates works
Main Components
a) Client-Side Layer:
• PWA Shell
• React Components Structure
• Static Assets
• Service Worker
b) Server-Side Layer:
• Next.js Server
• API Routes
• Server-Side Rendering Logic
c) Build & Configuration:
• Next.js Configuration
• PWA Configuration
• TypeScript Configuration
┌─────────────────────────────────────┐
• Client Layer │
• (Browser/PWA/Service Worker) │
• ┘
• ↕
┌─────────────────────────────────────┐
• Next.js Server Layer │
• (SSR/API Routes/Static Gen) │
• ┘
• ↕
┌─────────────────────────────────────┐
• Build & Configuration │
• ┘
Component Details
a) Client Layer (Blue):
• PWA Container (showing manifest.json and service worker integration)
• React Components Tree:
• Page Components (/src/pages)
• Shared Components (/src/components)
• CommemorativeDate Feature
• Chakra UI Integration
b) Server Layer (Green):
• API Routes (/src/pages/api)
• Server-Side Rendering Pipeline
• Static Generation
c) Build & Configuration (Gray):
• TypeScript Configuration
• Next.js Config
• PWA Config
• Prisma Integration
• Service worker communication with client
• SSR flow from server to client
• API route requests
• Build-time processes
Implementation Notes
• Rectangles: Major components
• Rounded rectangles: Features/modules
• Hexagons: External services/integrations