Skip to content

jaynewey/gust

Repository files navigation

Gust

💨 Wasm powered weather app

View the Live deployment.

Features

  • Hourly temperature and weather conditions
  • Hourly precipitation probability
  • Hourly wind speeds and direction

Contributing

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

Formatting and Linting

rustfmt, leptosfmt and rustywind are used to format source files:

cargo fmt
leptosfmt src
rustywind src

clippy lints are also enforced:

cargo clippy

Weather data by Open-Meteo.com

About

💨 Wasm powered weather app

Resources

License

Stars

Watchers

Forks

Languages