Transit Pulse is a modern, real-time analytics dashboard for the Winnipeg Transit network. It serves as the visual interface for exploring On-Time Performance (OTP), ridership trends, and service bottlenecks using interactive charts and geospatial maps.
Built with Svelte and Vite for lightning-fast rendering.
Clone the repository:
git clone https://github.com/HarshvardhanGadhvi/winnipeg-transit-svelte-viz.git
cd winnipeg-transit-svelte-viz
Install dependencies:
npm install
Environment Setup:
Create a .env file in the root directory to point to your backend API.
# .env
# Point this to your backend server IP/URL
VITE_API_BASE_URL=http://localhost:5001/api/v1
Start the development server:
npm run dev
Open your browser at http://localhost:5173 (or the Network IP shown in the terminal).
```text src/ βββ components/ β βββ OTP/ # OTP Dashboard Widgets (Scorecards, Charts) β βββ Map/ # Leaflet Map Wrappers β βββ Passups/ # Pass-up Logic β βββ Ridership/ # Ridership Graphs βββ stores/ # Global State (otpStore, ridershipStore) βββ App.svelte # Main Application Layout