Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesclarke7283/taurileptostailwindtemplate
A template i forked from https://github.com/michalvavra/tauri-leptos-example Currently the most complete Tauri+Leptos+Tailwind template.
https://github.com/jamesclarke7283/taurileptostailwindtemplate
leptos tailwind tailwindcss tauri template
Last synced: about 4 hours ago
JSON representation
A template i forked from https://github.com/michalvavra/tauri-leptos-example Currently the most complete Tauri+Leptos+Tailwind template.
- Host: GitHub
- URL: https://github.com/jamesclarke7283/taurileptostailwindtemplate
- Owner: JamesClarke7283
- License: other
- Created: 2023-08-25T18:48:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-15T17:13:22.000Z (about 21 hours ago)
- Last Synced: 2024-11-15T18:22:59.397Z (about 20 hours ago)
- Topics: leptos, tailwind, tailwindcss, tauri, template
- Language: Rust
- Homepage:
- Size: 230 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![image](https://github.com/JamesClarke7283/TauriLeptosTemplate/assets/78018345/e5f0d309-13f0-4e6e-b4d3-df9e979779ea)
# Tauri Leptos Example (With TailwindCSS)
- [Tauri][tauri_web]
- [Leptos][leptos_repo]See [Prerequisites](#prerequisites) section.
```sh
# Build and develop for desktop
cargo tauri dev# Build and release for desktop
cargo tauri build
```## Prerequisites
```sh
# Tauri CLI
cargo install --locked [email protected]# Rust stable (required by Leptos)
rustup toolchain install stable --allow-downgrade# WASM target
rustup target add wasm32-unknown-unknown# Trunk WASM bundler
cargo install --locked trunk# `wasm-bindgen` for Apple M1 chips (required by Trunk)
cargo install --locked wasm-bindgen-cli# `esbuild` as dependency of `tauri-sys` crate (used in UI)
npm install --global --save-exact esbuild# Optional: `tailwindcss` for UI styling
npm install --global tailwindcss
```## Running
### Run in Dev mode
```bash
cargo tauri dev
```### Build in Production
```bash
cargo tauri build
```## Credits
All credit for the counter example in [`./src-ui/src/lib.rs`](src-ui/src/lib.rs)
goes to authors and contributors of [gbj/leptos][leptos_repo] GitHub repository,
[MIT License][leptos_license], Copyright 2022 Greg Johnston.[tauri_web]: https://tauri.app/
[leptos_repo]: https://github.com/gbj/leptos
[leptos_nightly_note]: https://github.com/gbj/leptos#nightly-note
[leptos_license]: https://github.com/gbj/leptos/blob/e465867b30db8fccce7493f9fc913359246ac4bd/LICENSE