We use the dedicated dioxus-cli
to build and test dioxus web-apps. This can run examples, tests, build web workers, launch development servers, bundle, and more. It's general purpose, but currently very tailored to Dioxus for liveview and bundling. If you've not used it before, cargo install --path pacakages/dioxus-cli
will get it installed. This CLI tool should feel like using cargo
but with 1st party support for assets, bundling, and other important dioxus-specific features.
Alternatively, trunk
works but can't run examples.
cargo run --example tide_ssr
cargo run --example doc_generator
cargo run --example fc_macro
cargo run --example hello
cargo run --example router
cargo run --example tide_ssr
cargo run --example webview
cargo run --example twitter