/tauri-next-boilerplate

📦 A supercharged Tauri boilerplate that uses NextJS for the frontend.

Primary LanguageTypeScriptMIT LicenseMIT

Note
Tauri have their own guide on using NextJS as your frontend providor now. Please use that instead.

☁ Tauri & Next

Setting up

$ git clone https://github.com/tygerxqt/tauri-next-boilerplate
$ cd tauri-next-boilerplate
$ yarn && yarn dev
=== OR ===
$ yarn && yarn dev:app

Scripts

yarn dev - Starts Next development server.
yarn build - Builds the Next app to ./out.
yarn dev:app - Builds and exports the Next app and launches the Tauri dev app.
yarn build:app - Builds and exports the Next app, then builds the Tauri app and installer.

Project tree

tauri-next-boilerplate/
├─ src/
│  ├─ pages/
│  ├─ public/
│  ├─ styles/
├─ src-tauri/
│  ├─ icons/
│  ├─ src/
│  ├─ build.rs
│  ├─ tauri.conf.json
│  ├─ Cargo.toml
...

/src - NextJS Project.
/src-tauri - Tauri Project.

Note: You might wanna edit the /src-tauri/tauri.conf.json file and replace the application icons at /src-tauri/icons/*

Docs

NextJS - Frontend framework docs.
Tauri - Tauri docs.

Help

If more help is needed, you can contact me by e-mail or tweet to me.