How prat3564/market-dashboard works
This is a serverless market dashboard: scheduled scraping refreshes US and Indian index datasets, while a browser dashboard displays those feeds alongside live metals and currency data. The scraper is a separate data-ingestion stage; the JSON files are its persisted output and the dashboard’s local-feed inputs. The graph preserves the documented automation, hosting, UI, and market-data branches. Some frontend calls and the workflow are shown only in excerpts or README documentation, so unsampled implementation details are not inferred.
Main entry points: market.js Dashboard controller · scraper.py Market scraper · index.html Dashboard document · indian_indices.json Indian indices
Components 14
Scheduled ingestion
- GitHub Actions
.github/workflows/cron_scraper.yml - Market scraper
scraper.py
Market data
- LiveMint India
- MintGenie API
- Indian indices
indian_indices.json - US indices
us_indices.json - Metals price API
- USD/INR rate API
- MSN index API
Browser dashboard
- Dashboard document
index.html - Dashboard controller
market.js - Dashboard styling
market.css
Static hosting
- GitHub Pages
Other components
- Dashboard visitor
Connections 14
- GitHub Actions → Market scraper: runs every three hours
README.md - Market scraper → LiveMint India: scrapes
scraper.py - Market scraper → MintGenie API: requests prices
scraper.py - Market scraper → Indian indices: writes
scraper.py - Market scraper → US indices: writes
scraper.py - Dashboard visitor → GitHub Pages: opens dashboard
README.md - GitHub Pages → Dashboard document: serves
README.md - Dashboard document → Dashboard controller: loads controller
README.md - Dashboard document → Dashboard styling: uses styles
README.md - Dashboard controller → Indian indices: fetches local feed
market.js - Dashboard controller → US indices: fetches local feed
market.js - Dashboard controller → Metals price API: fetches prices
README.md - Dashboard controller → USD/INR rate API: fetches exchange rate
market.js - Dashboard controller → MSN index API: fetches index data
market.js