A rewrite of isworcesterunderwater.co.uk to be a static site built using Rust and Yew.
This website shows the current river levels at the river monitoring stations either side of Worcester (Barbourne and Diglis), and shows an estimate of whether or not the city is currently flooding.

- Clone the repo
- Open the devcontainer in vscode
- To see the site run
trunk serve. This will serve the site onhttp://127.0.0.1:8080/IsWorcesterUnderwaterV2. This will also auto rebuild and refresh the page when you save any changes - To build a release run
trunk build --release. The site will be built in the ./dist directory
- Push to main
- Github actions should build the site and push to production automatically
devcontainer: docker based development environment with lots of vscode integration.Rust: programming languageCargo: standard tool for working withRust. Used for building/test/managing dependenciesYew: Frontend library for developing webapps inRust. ThinkReactbut forRustTrunk: Tool to make developing webapps much easier inRust. Use this instead ofCargofor building/running the project.
- Yew v0.21.0 is the latest version and has some issues
- specifying properties in the index.html breaks release builds due to code optimisation failure
- SRI needs to be turned off to avoid "this wasm file checksum doesn't match the one calculated at build time" errors
Original implementation can be found here