|
Download README.md from GEAS-EV/GEAS_dashboard_: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/datasets/GEAS-EV/GEAS_dashboard_/resolve/main/README.md
- Command line
-
hf download hf://datasets/GEAS-EV/GEAS_dashboard_/README.md
-
curl -L -H "Authorization: Bearer $HF_TOKEN" -o README.md https://huggingface.co/datasets/GEAS-EV/GEAS_dashboard_/resolve/main/README.md
2.33 kB
| # EV Grid Advisory Dashboard | |
| Interactive visualization for electric vehicle integration into distribution grids. | |
| ## π Bundle Placement | |
| When cloning from GitHub, the complete project structure is preserved: | |
| ``` | |
| grid-ev-advisory/ | |
| βββ dashboard/ β You are here | |
| βββ offline/ | |
| βββ notebooks/ | |
| βββ data/ | |
| βββ README.md | |
| ``` | |
| ## π― Getting Started | |
| ### From Full Project Clone | |
| ```bash | |
| # 1. Clone the main project | |
| git clone https://github.com/Youssef-Azzam/Grid-EV-advisory | |
| cd grid-ev-advisory | |
| # 2. Go to dashboard directory | |
| cd dashboard | |
| # 3. Install Node dependencies | |
| npm install | |
| # 4. Choose your setup: | |
| # Option A: Development (hot reload) | |
| npm run dev | |
| # Visit http://localhost:5173/ | |
| # Option B: Production build | |
| npm run build | |
| # Files saved to: dashboard/dist/ | |
| # Then serve with: http-server dist/ | |
| # Visit http://127.0.0.1:8080 | |
| ``` | |
| ## π Serving the Dashboard | |
| ### Development Mode | |
| ```bash | |
| cd dashboard | |
| npm run dev | |
| ``` | |
| ### Production Mode | |
| ```bash | |
| cd dashboard | |
| npm run build | |
| http-server dist/ | |
| # Visit http://127.0.0.1:8080 or other URLs shown | |
| ``` | |
| ## β οΈ Important: Directory Structure | |
| **When using `http-server`, ALWAYS be in the `dashboard/` directory:** | |
| ```bash | |
| cd dashboard | |
| http-server dist/ β Correct | |
| http-server public/ β Correct | |
| # From project root - these will fail (404): | |
| http-server dashboard/dist/ β Wrong - looks for dashboard/dashboard/dist/ | |
| ``` | |
| ## π¦ Build Output | |
| After `npm run build`, the bundle is created at: | |
| ``` | |
| dashboard/dist/ | |
| βββ index.html | |
| βββ assets/ | |
| βββ [other files] | |
| ``` | |
| Deploy this `dist/` folder to: | |
| - GitHub Pages | |
| - Netlify, Vercel | |
| - Any static hosting service | |
| - Docker container | |
| - Self-hosted server | |
| ## π Features | |
| - Interactive scenario browser (1,008 scenarios) | |
| - Grid stress visualization with Leaflet maps | |
| - Time navigation (96 timesteps per scenario) | |
| - Bus-level detail view | |
| - Filter by EV count and severity | |
| ## π Links | |
| - **Main Project:** https://github.com/Youssef-Azzam/Grid-EV-advisory | |
| - **Live Dashboard:** https://Youssef-Azzam.github.io/Grid-EV-advisory/ | |
| ## π Available Scripts | |
| - `npm run dev` β Start dev server (port 5173) | |
| - `npm run build` β Create production bundle in `dist/` | |
| - `npm run preview` β Preview production build | |
| - `npm run lint` β Check code quality | |