Ready-to-commit Vite + React (TypeScript) with Tailwind CSS, minimal local UI components, Recharts, and a GitHub Pages workflow.
Configured for GitHub Pages at https://sr320.github.io/m2m-dashboard/.
npm i
npm run dev- Create a GitHub repo named m2m-dashboard under sr320 and push.
- The
vite.config.tsalready hasbase: '/m2m-dashboard/'. - In GitHub → Settings → Pages → Build and deployment: Source = GitHub Actions.
- Push to
main— the included workflow will publish to:https://sr320.github.io/m2m-dashboard/
- Sites: edit the
SITESarray insrc/App.tsx. - Thresholds: edit
THRESHOLDS(UI edits are mock, not persisted). - Real data: replace the simulator with your API/WebSocket in the
useEffectthat updatesseries.