This repo is a simple boilerplate to create desktop apps using Vite, React and Tauri.
- Install Tauri by following instructions for your recommended system: https://tauri.studio/docs/getting-started/prerequisites
- Clone this repo and install dependencies using PnPm (recommended) or your preferred package manager.
- Start the React server by running
pnpm dev
ornpm run dev
and do not close this session. - Start Tauri by running
pnpm tauri-dev
ornpm run tauri-dev
in a different terminal. The first run might take some time. - Make changes to your app and see them getting reflected!
- To build your app, first build the react project using
pnpm build
ornpm run build
- Once the build is finished, then run
pnpm tauri-build
ornpm run tauri-build
to create an executable for your system. The first run might take some time.