alexan.dev is hosted on my Raspberry Pi and served with serve.
- Install Rust
To install Rust, visit the official installation page: https://www.rust-lang.org/tools/install
- Install
cargo-binstall
:
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
- Install Dioxus CLI:
cargo binstall dioxus-cli
- Serve the app with the web server:
dx serve
- Open your browser and navigate to http://localhost:8080 to view the app.
dx bundle
The public directory in the web folder will always be placed alongside the server binary. In this case it is target/dx/alexan-dev/release/web/public