Example applications
Complete projects from frus 0.5.0, each a standalone Cargo project that depends on the published crate. Read them in this order.
hello_worldThe smallest application: one entry point, one
StatelessWidgetpagecounterState: a
StatefulWidget, itsState, handlers, a timer, unit testswidgetsThe widget gallery: every widget with a live example and its code
formsText fields, choices, pickers, validation and submission
navigationRoutes, parameters, query strings, nested pages, guards, navigation bars
httpCalling a JSON API: loading, errors, retries, posting data
websocketA long-lived connection: messages over time, sending, reconnecting
authenticationSign-in, a shared auth service, route guards, sessions
forgeA larger real application (front end and back end)
Running one
Unzip it, then from its folder:
cargo run # on the desktop: Windows, macOS, Linux
cargo test # its tests, without a window
frus run -d web # in the browser, with the frus command
frus run -d android # on the connected phone
Every project is laid out the same way, described in App structure. The frus command is covered in The frus command.