How jaswanth431/covid-19-tracker works
Main Components
• Client-side UI: Represent the “index.html” page that serves as the entry point. This component ties together the HTML layout and the “style.css” for styling.
• Front-end Logic: Highlight “app.js” which controls data fetching, DOM manipulation, and event handling. Note that the project also uses jQuery (mentioned in the README).
• And GeoData Components: Separate modules for “indiaGeoJson.js” and “indian-states.json” indicate that the application reads geographic data for mapping.
• Global Covid Data API (http://covid19api.com)
• Indian Covid Data API (http://api.covid19india.org)
• Mapping Library: Include an external services block for Highcharts (specifically the maps demo from https://www.highcharts.com/maps/demo).
File Structure for Further Details
• “index.php” is also present, which might be used as an alternative entry point or for server-side rendering under certain conditions. Add a note or component that outlines this possibility if server-side processing is required.
• The “_config.yml” file could be a configuration file for deployment or website settings (possibly for integration with platforms like GitHub Pages or a static site generator). Include a small note for configuration management.
Architectural Patterns and Design Principles
• Front-end Focus: Emphasize that the application is a client-side single-page web app fetching live data from remote sources.
• Separation of Concerns: Clearly separate static assets (HTML, CSS), dynamic logic (JavaScript, jQuery), and external dependencies (APIs and Highcharts). This helps in understanding the role of each file or set of files.
• External Data Integration: Mark the integration points with the external APIs and the mapping library.