How azardnet/sc-weather works
Project type and purpose
• At its core “sc-weather” is a single-page, progressive web application (PWA) that fetches weather data from external APIs and displays it in a responsive React/TypeScript UI.
• The TODO list shows plans for an Express-based backend proxy, service-worker caching, notifications, and third-party integrations (e.g. Spotify).
File structure
• Root folder
• index.html, style.scss, static/ → raw HTML/CSS and assets served directly to the browser
• index.js, request.js, translate.js, utils.js → Node scripts (future Express server entrypoint, API wrappers, utility functions)
• webpack.dev.js / webpack.prod.js → build pipelines for bundling front-end assets and server code
• .env.example → environment variables for API keys (OpenWeatherMap, Spotify, etc.)
• face/ sub-folder
• package.json, vite.config.ts, tsconfig.json → standalone React/TypeScript front-end powered by Vite
• src/ → React components (Search, WeatherData), styles, assets, entrypoint (main.tsx)
• public/ → static files that Vite will copy into /dist
Key insights from the README
• The “wrapper back-end with express” item hints at a two-tier architecture:
a) Front-end SPA built and served as static assets
b) Express API to proxy external weather (and later Spotify) calls
• PWA features under development: service worker, manifest.json, caching strategies, notifications.
• Client (browser)
• Static asset server / CDN
• API server
• External services
• Important build steps (e.g. “Vite build → face/dist”, “Webpack → public/dist”)