How team-when-will-we-meet/wwwm-react-fe works
Project Type and Purpose
• This is a single‐page web application (SPA) built with Create React App. It provides a client‐side calendar/appointment UI (month view, week view, time picker, etc.) and is deployed as a Progressive Web App (PWA) on Firebase Hosting.
• There is no custom backend code in the repo; all application logic lives in the React front end, and Firebase Hosting serves the static bundle.
High-Level Components
a. Developer Environment
• Local Source Code (GitHub repo)
• Node.js/NPM toolchain (npm start, build, test)
• CRACO for custom Webpack/PostCSS/Tailwind config
b. Continuous Integration / Deployment
• GitHub Actions workflows (firebase-hosting-pull-request.yml and firebase-hosting-merge.yml)
• On merge to main: run tests → run build → deploy to Firebase Hosting
c. Build Pipeline
• React (JSX/TSX) → Babel → Webpack → bundle
• Tailwind CSS / PostCSS → CSS bundle
• Output to build/ directory
d. Hosting & Runtime
• Firebase Hosting (serves index.html + static assets via CDN)
• Browser loads the PWA, registers service worker, hydrates React app
e. Application Modules (inside src/)
• Components (Button.tsx, TimePicker.tsx, Loading.js, LandingPage.js)
• Pages (MonthView, WeekView, AccountManagement, Invite, etc.)
• Utils (cn.js)
• Public assets (manifest.json, robots.txt, JSON animations in public/)
Interactions and Data Flow
• Developer → GitHub push
→ GitHub Actions CI → run tests + build
→ on success → deploy artifacts to Firebase Hosting
• Browser → HTTP GET to Firebase CDN → downloads index.html + JS/CSS bundles
→ React Router hydrates client-side routes
→ UI components render calendar views & pickers
Architectural Patterns and Principles
• Single-Page Application with client-side routing (React Router)
• Component-based UI (atomic design: shared components vs. page modules)
• Separation of concerns:
• Build configuration (craco.config.js, postcss.config.js, tailwind.config.js)
• Static assets (public/)
• Source logic & styling (src/)
• PWA best practices: manifest.json, service worker (via CRA), offline support
Technologies and Frameworks
• React, JSX/TSX
• CRACO for Webpack overrides
• Tailwind CSS + PostCSS
• GitHub Actions (CI/CD)
• Firebase Hosting (CDN)
• Create React App (build scripts, testing with Jest)
Detailed Elements
• Build step: label Webpack + Babel + PostCSS → build/
• Deployment step: label Firebase Hosting (with caching/CDN).
• PWA layer: service worker registration in the browser.