How covid19india/covid19india-react works
Project type and purpose
• This is a single-page React application that visualizes COVID-19 data for India.
• It pulls data from an external API (https://api.covid19india.org) and renders maps and charts in the browser.
File structure
• Top-level “public” directory holds static assets: index.html, manifest, robots.txt, raw and projected map JSON files.
• “src” is the React codebase, including components, hooks, utilities, i18n, service worker setup, and web workers.
• Build configuration is in rollup.config.js; service-worker templates and build script (swTemplate.js, swBuild.js) set up offline caching.
• Scripts folder has a shell script to process project maps.
• CI/CD and contribution workflows live under .github and Husky hooks manage pre-commit linting/tests.
README for additional insights
• Confirms that it’s purely a front-end project that consumes a public API.
• No backend code is included, so the “system” is primarily the browser and external services.
Detail
• Piece: public maps JSON, sw registration, worker scripts, i18n subsystem, component tree, static-host, API, CI.
• Don’t conflate all front-end code into “Client”—break it out into React vs caching vs worker.