How carsoftwaresystems/ev.carsoftwaresystems works
1. Repository shape
- This repo is a Vue 3 + TypeScript frontend with an AWS Amplify backend defined alongside it.
- It is not a single-purpose app repo: it also contains a large amount of static site content, PDFs, images, and legacy HTML/CSS/JS assets.
2. Primary runtime path
- The main application entry is src/main.ts, which mounts src/App.vue.
- The Vue source is built with Vite (vite.config.ts) and uses shared styles from src/assets/.
- src/components/Todos.vue plus the Icon*.vue files are the only clear app components in the tree, so the Vue app is still a starter/template-level UI.
3. Frontend boundaries
- src/ is the modern application boundary: Vue components, app bootstrap, and app-local CSS.
- public/ is the static asset boundary for the frontend build output: downloadable documents, PDFs, video, and test fixtures.
- The root-level index.html is the browser entry page for the Vite app.
4. Amplify backend boundary
- amplify/ is a separate backend workspace with its own package.json and TypeScript config.
- amplify/backend.ts is the composition point for backend resources.
- amplify/auth/resource.ts defines the authentication subsystem.
- amplify/data/resource.ts defines the data/API subsystem.
5. Backend capabilities
- The README states the backend is meant to provide:
- Amazon Cognito for auth
- AWS AppSync for GraphQL API access
- Amazon DynamoDB for persistent data
- So the expected data flow is: browser UI → Amplify client/runtime → AppSync API → DynamoDB, with Cognito guarding access.
6. Deployment and environment
- amplify.yml indicates the repo is intended for Amplify-based deployment/hosting.
- env.d.ts and the Vite/TS config files suggest the app is set up for type-safe environment and build-time integration.
7. Static content library
- The public/ tree is unusually large and contains many domain-specific assets: EV, battery, telematics, AI, engineering, and market research PDFs, plus a test video and JSON.
- Architecturally, this looks like a content/document distribution layer rather than dynamic application state.
8. Legacy or parallel website assets
- The root-level css/, js/, fonts/, img/, php/, and additional HTML files (index_1.html, index_original.html, ev/index.html, doc-sample/index.html) form a separate static website/marketing-site surface.
- php/form-process.php and js/contact-form-script.js imply an older contact-form flow that is distinct from the Vue/Amplify stack.
- For diagramming, treat this as a parallel static/legacy presentation layer, not part of the core Vue app unless explicitly wired in.
9. Styling system
- There are two styling tracks:
- src/assets/*.css for the Vue app
- root css/ and scss/ for the broader site templates/themes
- This suggests the repository may be carrying both the current Vue app and older theme assets in one codebase.
10. Content and navigation emphasis
- The repo appears optimized around document-heavy EV/engineering content and downloadable assets rather than data-intensive UI flows.
- The application likely serves as a portal or brochure site with authenticated/backend-enabled capabilities available as the project grows.
11. Practical architecture summary
- Client layer: Vue/Vite app in src/
- Backend layer: Amplify-defined auth + data services in amplify/
- Static delivery layer: public/ for documents/media and root legacy assets for older pages
- Deployment layer: Amplify hosting/deploy pipeline via amplify.yml
12. Key diagram boundary to capture
- The most important architectural boundary is between the browser-rendered Vue app and the Amplify-managed cloud backend.
- A second important boundary is between the modern app source and the legacy/static site content, since both coexist in the repo but serve different purposes.
Main entry points: main.ts Main boot · App.vue App shell · backend.ts Backend comp · resource.ts Data resource
Components 18
Modern frontend
Vue 3 + Vite application surface
- Index page · Browser entry page for the Vite app
index.html - Main boot · Mounts the Vue application
src/main.ts - App shell · Top-level application component
src/App.vue - Todos UI · Primary visible app component
src/components/Todos.vue - Icon set · Template icon components used by the starter UI
src/components/icons - App styles · Shared styles for the modern frontend
src/assets
Amplify backend
Cloud resources defined in the Amplify workspace
- Backend comp · Backend resource composition point
amplify/backend.ts - Auth resource · Authentication subsystem definition
amplify/auth/resource.ts - Data resource · GraphQL data/API subsystem definition
amplify/data/resource.ts - Backend package · Separate package manifest for the Amplify workspace
amplify/package.json - Backend TS config · TypeScript configuration for the Amplify workspace
amplify/tsconfig.json
Legacy site
Older static website and form-processing assets
- Legacy pages · Older HTML surfaces and alternate landing pages
index_1.html - Theme assets · Legacy styles, scripts, fonts, and images
css - Form handler · Old contact-form processing endpoint
php/form-process.php
Static content
Downloadable documents and media served from public/
- Docs library · Large document set for EV and engineering topics
public - Test media · Sample JSON and video fixtures
public/test
Build and deploy
Tooling and hosting configuration
- Vite config · Frontend build and dev server configuration
vite.config.ts - Deploy config · Amplify deployment and hosting pipeline definition
amplify.yml
Connections 19
- Index page → Main boot: loads · The browser entry page boots the Vue app
- Main boot → App shell: mounts · Application bootstrap mounts the root component
- App shell → Todos UI: renders · Main app composition uses the starter todo component
- App shell → Icon set: uses · Template UI icon components support the app shell
- App shell → App styles: styles · App shell pulls in shared frontend styles
- Main boot → Vite config: built by · Frontend runtime is bundled through Vite
- Backend comp → Auth resource: includes · Backend composition includes authentication resources
- Backend comp → Data resource: includes · Backend composition includes data/API resources
- Auth resource → Data resource: guards · Authenticated access constrains the data/API layer
- Main boot → Backend comp: client backend · Frontend is designed to consume the Amplify backend
- Data resource → Docs library: serves · Backend-enabled app sits alongside document-heavy content distribution
- Docs library → Test media: contains · Static content area also includes media/test fixtures
- Legacy pages → Theme assets: depends on · Older pages rely on the legacy theme assets
- Legacy pages → Form handler: posts to · Legacy contact flow is processed by the PHP endpoint
- Theme assets → Form handler: supports · Legacy presentation layer coexists with the old form flow
- Deploy config → Backend comp: deploys · Amplify hosting pipeline deploys the backend workspace
- Deploy config → Index page: hosts · Deployment also serves the Vite frontend entry
- Vite config → App styles: bundles · Vite build includes the modern app styles and assets
- Backend package → Backend TS config: configures · Amplify workspace package and TypeScript setup are paired