tkr-sh / dioxus-template

a template for starting a dioxus project to be used with dioxus-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development

{% if styling == "Tailwind" %}

  1. Install npm: https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
  2. Install the tailwind css cli: https://tailwindcss.com/docs/installation
  3. 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 %} {% endif %} {% endif %}

About

a template for starting a dioxus project to be used with dioxus-cli


Languages

Language:Rust 97.2%Language:JavaScript 2.2%Language:CSS 0.7%