💨 Wasm powered weather app
View the Live deployment.
- Hourly temperature and weather conditions
- Hourly precipitation probability
- Hourly wind speeds and direction
Contributions are appreciated. Please see the following to get started:
Download the Tailwind standalone CLI and add it to your PATH, e.g:
curl -sL https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.3/tailwindcss-linux-x64 -o tailwindcss
chmod +x tailwindcss
mv tailwindcss /usr/local/bin/
Build and serve the app: (This will require trunk
: cargo install trunk
)
trunk serve
Serve the development API with: (This will require rust-script
: cargo install rust-script
)
rust-script scripts/server.rs
The app should now be visible at 127.0.0.1:8080/gust/
.
To test the app on the live API, serve the app with:
FORECAST_ENDPOINT=https://api.open-meteo.com/v1 GEOCODING_ENDPOINT=https://geocoding-api.open-meteo.com/v1 trunk serve
rustfmt
, leptosfmt
and rustywind
are used to format source files:
cargo fmt
leptosfmt src
rustywind src
clippy
lints are also enforced:
cargo clippy