Another stab at a marta.io clone, this time server-side-rendered and in rust with HTTP compression.
Features:
- three views: station list, station view, train view
- dark/light mode and other styling using tailwindcss
- polls every 10s for updates if you sit in a view (htmx/morphing)
- install
bun
andcargo
/rust cargo install ultraman cargo-watch
ultraman start -f Procfile.dev
- this kicks off
tailwindcss
watching your templates for style changes - kicks off cargo-watch rebuilding your app any time you edit files
(you have to reload browser manually, and HTMX partial loads might be missing styles)
This was scaffolded using Loco, which is a web and API framework running on Rust.
This is a frankenstein which means their starter had a ton of shit I didn't need, so I gutted a lot of it and added in my askama templates + rickshaw asset pipeline.