Tauri and ReactJS 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 ReactJS component libraries.
TODO: make this template into a downloadable one
Add https://github.com/elibroftw/modern-desktop-app-template/commits.atom to your RSS reader to stay up to date!
- 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
- 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 - If you are on a slow computer, see tips for a faster way to start developing
- If any problems arise, open an issue
- Set
alwaysOnTop
totrue
intauri.conf.json
while developing to avoid alt tabbing - Use
yarn py
after a singlepip install pywebview
if you do not want to wait for the Tauri dev build to compile - Or use
yarn start
if you only need to edit the frontend - If a sub-dependency of
package.json
is broken, useresolutions: {subDependency: version}
to use older verisons of the sub-dependency
- 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