Tauri and React boilerplate for a modern desktop application. Not a project nor a substitute tutorial for my video tutorials. I didn't use yew (wasm) since its component libraries are not to the calibre of existing React component libraries.
- Install Tauri prerequisites
- Download or Clone this repository
git clone --depth=1 https://github.com/elibroftw/modern-desktop-app-template.git new-app
- Go into
new-app
- Run
yarn
to install packages - While
yarn
is working,- Edit
src-tauri/tauri.conf.json's productName, identifier, title
- Edit
src/App.jsx's HEADER_TITLE, FOOTER
- Remove the
.git
folder - Edit
SAMPLE_README.md
and replaceREADME.md
- Delete or replace
LICENSE.md
since this template is public domain
- Edit
- Run
yarn dev
to start developing - Read Tips and Trouble Shooting section of the new
README.md
- If any problems arise, open an issue or contact me
- Follow only the Tauri prerequisites
- Install yarn with
npm i -g yarn
- Create the frontend project with
yarn create vite APP-NAME --template react[-ts]
and enter a package-name if you have to - Run
yarn add -D @tauri-apps/cli && yarn tauri init
in the newly created directory - Now copy the contents of each file in this repo (excluding
README.md
andLICENSE.md
) into the corresponding file of your project. For example mypackage.json
. - Run
yarn
to install dependencies (ignore warnings) - Run
yarn dev
to start developing
Add https://github.com/elibroftw/modern-desktop-app-template/commits.atom to your RSS reader to stay up to date! I do not recommend pulling from my repo because you will need to edit the same files I reorganize
- The four views not found in boilerplate were added by yours truly. My About is the ViewExample provided in
src
Home view
is purposely not translated since it's a filler