How tejppatel/novel-covid-tracker works
Project type and purpose
• This is an Ionic + Angular mobile (and PWA) application called “Novel-Covid-Tracker.”
• Its sole responsibility is to fetch and display COVID-19 statistics worldwide—by country, state, district—and render charts, maps, FAQs, news, and prevention guidelines.
• There is no custom backend in the repo; the app relies entirely on external REST APIs and local geo-assets.
File structure
• Top-level config files: angular.json, ionic.config.json, tsconfig*.json, package.json, etc.
• src/app contains Angular modules and lazy-loaded pages (about, faqs, prevention, world-statics, country-statics, state-details, district-details, tabs & tab1/tab2/tab3, pie-chart, mapdata.ts, and shared components like news, countries-summary-card, state-summary-card, district-summary-card).
• Each page folder consists of routing, module, .ts, .html, .scss, and unit test files.
• Shared services (e.g., worldstatics.service.ts, country-summary.service.ts, statewise.service.ts, districtwise.service.ts, news.service.ts) encapsulate HTTP calls to external APIs.
• No server-side code; this is purely a client application.
Essential architectural elements to capture
• Ionic Platform layer (tabs & navigation)
• Angular routing & lazy modules (e.g., country-details.module.ts loaded on demand)
• Shared services as singletons injected across pages
• External REST endpoints (base URLs configured per environment.ts)
• Local geo-assets consumption for map rendering
• Data flow direction (UI → Service → External → Service → UI)