How joshua-id/med-lab-survey-management works
Purpose and Runtime
This is a Vue 3 single-page application built and bundled by Vite. It appears to combine a marketing landing experience with authenticated operational views for doctors, patients, staff, and administrators. Deployment is configured for Vercel.
Core runtime paths: src/main.js, src/App.vue, vite.config.js, vercel.json.
Application Bootstrap and Shell
src/main.js initializes Vue and mounts the application. src/App.vue is the top-level shell, likely hosting route rendering and globally persistent UI. Shared navigation, drawer, theme, consent, and logout UI are separated into reusable shell components.
Paths: src/main.js, src/App.vue, src/components/HeaderNavigator.vue, src/components/AppDrawer.vue, src/components/CookiesBanner.vue.
Routing and Page Boundaries
Client-side route definitions centralize navigation in src/router/index.js. Views are the primary feature boundaries: public landing/authentication pages, domain-facing clinical/control pages, and administration pages. Unmatched navigation is handled by a dedicated not-found view.
Paths: src/router/index.js, src/views/HeroLanding.vue, src/views/AuthLogin.vue, src/views/NotFoundPage.vue.
Identity and Firebase Boundary
Firebase is initialized behind src/firebase.js, using Vite-provided environment variables for project credentials. Authentication-oriented views and logout UI are the likely consumers of this boundary; Firebase may also provide data or storage services, but the tree does not establish that usage conclusively.
Paths: src/firebase.js, src/views/AuthLogin.vue, src/views/Register.vue, src/components/LogoutButton.vue.
Operational Domain Areas
The protected/product workflow is partitioned into role- or task-oriented screens. Dashboard provides the general entry point; doctor and patient-control screens represent clinical operations; staff and admin monitoring/users screens represent management operations.
Paths: src/views/Dashboard.vue, src/views/DoctorsView.vue, src/views/PatientControl.vue, src/views/AdminUsers.vue, src/views/MonitoringAdmin.vue, src/views/StaffUsers.vue.
Data Access and External APIs
src/utils/fetchDataStore.js is the explicit application data-access abstraction. It likely mediates calls to externally configured dummy/random API URLs, keeping API interaction out of views. API endpoint bases are supplied through VITE_API_URL_DUMMY and VITE_API_URL_RANDOM; Firebase configuration is separately environment-driven.
Paths: src/utils/fetchDataStore.js, src/firebase.js, package.json.
Public Marketing Composition
The landing experience is assembled from route-level content sections rather than a separate application. Marketing, pricing, testimonials, and footer are represented as views, with reusable feature cards supporting presentation composition.
Paths: src/views/HeroLanding.vue, src/views/ProductMarketingSection.vue, src/views/PricingSection.vue, src/views/TestimonialSection.vue, src/views/FooterSection.vue, src/components/FeatureCard.vue.
Shared Presentation and Static Delivery
Global styling is centralized in src/style.css; application assets reside under src/assets. Vercel serves the Vite build, while public/robots.txt and public/sitemap.xml support public-site crawlability.
Paths: src/style.css, src/assets, public/robots.txt, public/sitemap.xml, vercel.json.
Main entry points: index.js Client router · App.vue Application shell · HeroLanding.vue Public landing & auth · fetchDataStore.js Data access store
Components 17
Vue Runtime
- Vue bootstrap
src/main.js - Application shell
src/App.vue - Persistent shell UI · Navigation, drawer, consent, and logout controls.
src/components/HeaderNavigator.vue - Global styles & assets
src/style.css
Routes & Experiences
- Client router
src/router/index.js - Public landing & auth · Landing, login, registration, and not-found screens.
src/views/HeroLanding.vue - Marketing sections · Product, pricing, testimonials, and footer composition.
src/views/ProductMarketingSection.vue - Feature cards
src/components/FeatureCard.vue - Dashboard
src/views/Dashboard.vue - Clinical operations · Doctor and patient-control workflows.
src/views/DoctorsView.vue - Management operations · Admin, monitoring, and staff-user screens.
src/views/AdminUsers.vue
Service Boundaries
- Firebase boundary · Initialized with Vite environment credentials.
src/firebase.js - Authentication flows · Login and registration consume the identity boundary.
src/views/AuthLogin.vue - Data access store · Mediates configured dummy and random API calls.
src/utils/fetchDataStore.js
Build & Delivery
- Vite build
vite.config.js - Vercel deployment
vercel.json - Crawl metadata · Robots and sitemap support public-site indexing.
public/robots.txt
Connections 19
- Vite build → Vue bootstrap: bundles
- Vite build → Vercel deployment: build deployed by
- Vercel deployment → Crawl metadata: serves
- Vue bootstrap → Application shell: mounts
- Application shell → Client router: renders routes
- Application shell → Persistent shell UI: hosts
- Application shell → Global styles & assets: uses
- Client router → Public landing & auth: maps
- Client router → Dashboard: maps
- Client router → Clinical operations: maps
- Client router → Management operations: maps
- Public landing & auth → Marketing sections: composes
- Marketing sections → Feature cards: uses
- Public landing & auth → Authentication flows: includes
- Authentication flows → Firebase boundary: authenticates with
- Persistent shell UI → Firebase boundary: logs out through
- Dashboard → Data access store: loads data
- Clinical operations → Data access store: loads data
- Management operations → Data access store: loads data