flashblaze / vite-react-tauri-boilerplate

Boilerplate to start making desktop apps using Vite, React and Tauri

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vite React Tauri Boilerplate

This repo is a simple boilerplate to create desktop apps using Vite, React and Tauri.

Setup

  1. Install Tauri by following instructions for your recommended system: https://tauri.studio/docs/getting-started/prerequisites
  2. Clone this repo and install dependencies using PnPm (recommended) or your preferred package manager.
  3. Start the React server by running pnpm dev or npm run dev and do not close this session.
  4. Start Tauri by running pnpm tauri-dev or npm run tauri-dev in a different terminal. The first run might take some time.
  5. Make changes to your app and see them getting reflected!

Building

  1. To build your app, first build the react project using pnpm build or npm run build
  2. Once the build is finished, then run pnpm tauri-build or npm run tauri-build to create an executable for your system. The first run might take some time.

About

Boilerplate to start making desktop apps using Vite, React and Tauri

License:MIT License


Languages

Language:JavaScript 48.8%Language:CSS 31.0%Language:HTML 11.6%Language:Rust 8.6%