-
Install Dependencies
npm install
-
Run the Application
npm run tauri dev
The app works with mock data by default. To use real weather data:
- Visit OpenWeatherMap
- Sign up for a free account
- Get your API key
- Update
src-tauri/src/lib.rsline 99:let api_key = "YOUR_ACTUAL_API_KEY_HERE";
- Visit AirVisual
- Sign up for a free account
- Get your API key
- Update
src-tauri/src/lib.rsline 158:let api_key = "YOUR_ACTUAL_API_KEY_HERE";
In src/App.tsx, change the function calls:
// From mock data:
const weather = await invoke<WeatherResponse>('get_mock_weather', { city: settings.city });
// To real data:
const weather = await invoke<WeatherResponse>('get_weather', { city: settings.city });- ✅ Premium dark theme with glassmorphism
- ✅ Current weather display
- ✅ 3-day forecast
- ✅ Air quality index
- ✅ Settings management
- ✅ Responsive design
- ✅ Smooth animations
- ✅ Mock data for demo
- Ensure Rust is installed:
rustup --version - Update Rust:
rustup update - Clean build:
cargo cleaninsrc-tauri/
- Clear node modules:
rm -rf node_modules && npm install - Check Node version:
node --version(should be 16+)
src/
├── components/ # React components
├── types/ # TypeScript definitions
├── lib/ # Utilities
└── App.tsx # Main app
src-tauri/
├── src/lib.rs # Rust backend
└── Cargo.toml # Dependencies