https://github.com/n8jadams/tauri-typescript-react-boilerplate
A Tauri Typescript React Boilerplate that works out of the box.
https://github.com/n8jadams/tauri-typescript-react-boilerplate
boilerplate javascript react reactjs rust tauri tauri-app typescript
Last synced: 10 months ago
JSON representation
A Tauri Typescript React Boilerplate that works out of the box.
- Host: GitHub
- URL: https://github.com/n8jadams/tauri-typescript-react-boilerplate
- Owner: n8jadams
- License: mit
- Created: 2020-06-02T17:11:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T02:18:56.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T16:05:34.878Z (over 1 year ago)
- Topics: boilerplate, javascript, react, reactjs, rust, tauri, tauri-app, typescript
- Language: TypeScript
- Homepage:
- Size: 1.8 MB
- Stars: 68
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tauri Typescript React Boilerplate
A Tauri Typescript React Boilerplate that works out of the box.
- [x] MacOS
- [x] Windows 10
- [x] Linux
## Setup
Follow the [Tauri setup docs](https://tauri.studio/docs/getting-started/intro/) in your platform to get everything set up for Tauri development, then run
```bash
$ yarn
```
### Note for MacOS users
I had to do the following to get `node-gyp` to work...
* Use homebrew to install `vips`, `cmake` and `poppler`:
```bash
$ brew install vips cmake && brew link --overwrite poppler
```
* [Compile and install OpenEXR.](https://github.com/AcademySoftwareFoundation/openexr/blob/master/INSTALL.md)
### Note for Windows users
I had to run `rustup default stable` to change the default rust toolchain from `gnu` to `msvc`.
## Development
```bash
$ yarn dev
```
There's an example app that shows a little bit of how you can communicate between the front end (Typescript/JS) and back end (Rust)
## Build
```bash
$ yarn build
```
Tauri will walk you through the rest.
## Contributing
Feel free to create an issue or PR. Just understand I don't have a ton of time to contribute to this, so I may not be the fastest at responding.