a template for starting a dioxus project to be used with dioxus-cli and tailwindcss
cargo install --force sqlx-cli cargo-watch dioxus-cli systemfd wasm-bindgen-cli
dioxus init hello-dioxus --template=gh:casualjim/dioxus-tailwind-template
cp .env.example .env
echo SESSION_SECRET=\"$(openssl rand -base64 128 | tr -d '\n')\" >> .env
in terminal 1:
cd ./hello-dioxus
cargo frontend
in terminal 2:
cargo backend
Then open a browser: https://localhost:8443
or package this project:
dioxus build --release
.project
- public # save the assets you want include in your project.
- src # put your code
- - utils # save some public function
- - components # save some custom components