How zeeguu/web works
Project type and purpose
• This is a React single-page application (SPA) bootstrapped with Create React App, intended for interactive language learning.
• It’s deployed as a Progressive Web App (PWA) on Firebase Hosting (see firebase.json), uses a service worker for offline support and calls out to a Zeeguu REST API (configured via REACT_APP_API_URL).
• It integrates with browser extensions/bookmarklets and a speech service for text-to-speech functionality.
File structure
• Top-level directories:
• src/ – application code, organized by feature rather than by type
• Key src subdirectories:
• api/ – modules to call each backend endpoint (accounts, articles, exercises, nlp, speech, teacher, etc.)
• components/, pages/, reader/, videos/, words/, exercises/, teacher/, userDashboard/ – UI organized by feature
• contexts/ – React Context providers for API, user, routing, navigation, speech, languages
• hooks/ – custom React hooks for timers, pagination, preferences, extension communication
• utils/ – general utilities (cookies, routing, text processing, extension, browser detection)
• .env.* defaults define the API URL for dev/prod; firebase.json shows hosting config; service-worker.js for caching strategy.
README for additional insights
• Emphasizes env var configuration, use of VS Code plugins, coding conventions (separate styled components, naming rules, “Notify” pattern).
• Notes the expectation of another Zeeguu project serving the teacher dashboard at /teacher-dashboard.
• Blue rectangles for front-end modules (UI, contexts, hooks)
• Hexagon for browser extension integration