Easily development cross-platform app with this Dioxus custom template.
- Install Tailwind CSS
npm install -D tailwindcss@3 npx tailwindcss -i ./input.css -o ./public/tailwind.css- Install the Dioxus CLI
To get started with Dioxus, install the CLI using the following command:
cargo install dioxus-cliStart the Dioxus development server with live reloading
by default, the Dioxus development server runs for the web platform
dx serverun the development server for a different platform, specify the platform explicitly:
dx serve --platform desktop- Build the project for production:
dx bundle --platform web- Clean the project Remove all
targetdir:
dx cleanBefore starting, ensure you have the following installed on your system:
- Dioxus: https://dioxuslabs.com
- Rust: https://www.rust-lang.org
- Nodejs: https://nodejs.org/en/download
- TailwindCSS: https://v3.tailwindcss.com
- Tauri: https://tauri.app/start/prerequisites