codeaye / template

A simple tauri-react template written with custom structuring.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tauri React Template

This is essentially a react-ts and tauri template but with a folder structure i prefer more.

Installation

Have npm and rust installed and then install tauri-cli and cargo-commander:

cargo install cargo-commander tauri-cli

Now run the setup script:

cargo cmd setup

Run Locally

Follow the installation guide and then simply run:

cargo cmd dev

Your tauri app should launch in dev mode.

Build

To build your app run:

cargo cmd build

Publish

To publish your app, on github go to releases and create a release and a tag with the tagname starting with

v*

and the ci should start building the app for ubuntu, mac, and windows and add it to the release

Stuff you should change

root > cargo.toml
root > crates > [
    backend > [
        Cargo.toml, tauri.conf.json
    ],
    frontend > [
        index.html, package.json
    ]
]

Acknowledgements

License

MIT

About

A simple tauri-react template written with custom structuring.

License:MIT License


Languages

Language:CSS 36.1%Language:HTML 31.1%Language:TypeScript 20.3%Language:Rust 12.4%