A web app powered by Rust and HTMX to aid in keeping track of orders in Derail Valley (DV).
I use this in DV all the time, so I wanted to make sure that it did all order management so I could focus on planning the route rather than flipping through order booklets.
- Add orders (type, ID, From/To, Notes, Tonnes, Cars)
- Move and duplicate orders
- Check-off load and unloads
- Parse orders using string format (e.g.:
FH01 SM B1 SW A1 600 6) - Inherently multiplayer. Refresh to view updates.
You will need Rust installed, which works on Windows, macOS, and Linux.
Then, run cargo run to build and start the server. Optionally, you can pass in an address to bind to, such as cargo run -- --address 0.0.0.0:3000.
Then, open your browser to http://localhost:3000 to view the app.
- Add orders by clicking the "Add" button.
- Move and duplicate orders by using the options on the right of each order.
- Check off loads and unloads by clicking the checkbox on the right of each location (From and To).
- Enter orders manually by entering the order string into the input field and clicking the "Parse" button.
I made a simple format for entering orders using text, instead of clicking through the UI.
The format is: <kind><id> <from station> <from yard/track> <to station> <to yard/track> [tonnes] [cars].
Examples:
FH01 SM B1 SW A1 600 6LH02 CM A1 CS B1 400 4SL03 FM A1 HB B1 200SU04 FF A1 CME B1