{% if styling == "Tailwind" %}
- Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- Install the tailwind css cli: https://tailwindcss.com/docs/installation
- Run the following command in the root of the project to start the tailwind CSS compiler:
npx tailwindcss -i ./input.css -o ./public/tailwind.css --watch
{% endif %} {% if platform == "desktop" %} Run the following command in the root of the project to start the Dioxus dev server:
dx serve --hot-reload --platform desktop
{% else %} {% if platform == "TUI" %} Run the following command in the root of the project to start the Dioxus dev server:
dx serve --hot-reload --platform desktop
{% else %} {% if platform == "web" %} Run the following command in the root of the project to start the Dioxus dev server:
dx serve --hot-reload
- Open the browser to http://localhost:8080 {% else %} {% if platform == "Fullstack" %} Launch the Dioxus Fullstack app:
dx build --features web --release
cargo run --features ssr --release
{% else %} Launch the Dioxus app:
cargo run
{% endif %} {% endif %}