How geordee/solar-potential works
Project type and purpose
• This is a web application (a full-stack SvelteKit demo) whose sole purpose is to showcase Google’s Solar API data on a map. It leverages SvelteKit for server-side rendering (SSR) and client-side hydration, Vite as the build tool, Tailwind and Material Web Components for styling, and is intended to be deployed to Cloud Run.
File structure
• Top-level: standard Node/JavaScript configs (.env, package.json, tsconfig.json, ESLint/Prettier, GitHub Actions for CI, Cloud Run deploy files).
• src/app.html + src/app.css: HTML template and global CSS.
• src/routes: SvelteKit file-based routing.
• +layout.svelte handles the shared page shell (injects Google Maps API script, theme provider).
• +page.svelte/ts provide the homepage logic.
• /components contains reusable UI pieces (charts, inputs, calendar, map marker overlays).
• /sections groups page-specific UI sections.
• static: static assets (robots.txt).
• theme: Tailwind/tokens, light/dark CSS.
• tests & playwright: end-to-end and unit tests.
README for additional insights
• Tech stack summary: Solar API, Google Maps JavaScript API, Material Design Web Components, SvelteKit + TypeScript, Vite, Tailwind, ESLint/Prettier.
• Deployment: Cloud Run via gcloud build & deploy from source.
• Environment: VITE_GOOGLE_MAPS_API_KEY loaded from .env for browser use.