How me-phew/ada-assistant-web works
Project type and purpose
• This is a single‐page application (SPA) with server-side rendering (SSR) using Nuxt.js (Vue 3).
• It provides a public landing site (home, register, login, forgot/reset password) and a secured area (user dashboard & admin dashboard).
File structure
• Top-level Nuxt config and build files: nuxt.config.ts, Dockerfile, GitHub Actions workflows.
• “pages” folder holds route-driven views: index.vue, login.vue, register.vue, admin-dashboard.vue, dashboard.vue, etc.
• “layouts” defines two shell templates: default.vue (public) and dashboard.vue (authenticated).
• “components” contains reusable UI elements (BaseButton, BaseInput, DashboardHeader, AdminDashboardTabs, etc.)
• “composables” houses utility hooks (e.g. register.ts) to encapsulate logic (authentication, form state).
• “assets” holds global styles (SCSS partials, themes), images, and SVGs.
• “i18n” provides localization resources.
• CI/CD: .github/workflows for linting, build, staging & production deployments via Docker or static hosting.
README for additional insights
• Standard Nuxt minimal starter with instructions to install dependencies, run dev server, build & preview.
• No backend code—assumes integration with external APIs for authentication, data fetching, calendar integration, etc.
• User / Browser (client)
• CDN / Static hosting (e.g. Netlify, Vercel)
• Nuxt SSR server / Nitro serverless functions
• Public UI routes (pages+layouts)
• Authenticated UI routes (dashboard layouts + components)
• External API Gateway / Microservices (Auth Service, Data Service, Google Calendar API)
• Asset store (CSS/SCSS compiler, static images, SVGs)
• CI/CD pipeline (GitHub Actions → Docker build → Deployment)
• Browser → CDN: fetch static JS/CSS
• Browser → Nuxt SSR server: initial SSR HTML/text and subsequent API calls
• Nuxt SSR/server → External API Gateway: REST/GraphQL for user data, logs, calendar events
• Nuxt → Asset store: SCSS→CSS compilation at build time; images/SVGs served statically
• GitHub → CI/CD workflows → Docker registry → Hosting
c. Architectural patterns & design principles:
• Layered architecture: Presentation (components/pages/layouts) → Composables (business logic) → API layer → External services
• Route-based code splitting (Nuxt pages generate per-route bundles)
• Theming via SCSS partials and CSS variables loaded globally
• i18n at the root, feeding locale data into pages & components
d. Key technologies & libraries:
• Vue 3 / Nuxt 3 (SSR + static generation)
• SCSS modules for styling, SCSS variables & mixins
• @nuxtjs/i18n for localization
• Husky & lint-staged for pre-commit checks, ESLint/Prettier for code quality
• Dockerfile for containerization, GitHub Actions for CI/CD
Elements
• Clear, human-readable labels on every node (e.g., “Nuxt SSR Server”, “Auth Service”).
• Blue for frontend components (pages/layouts/components)
• Green for infrastructure (CDN, hosting, Docker, CI/CD)
• Orange for external services (Auth, Calendar, Data APIs)
• Annotations for build vs. runtime flows.