Setting up macOS
- CLang and macOS Developmeng Dependencies
$ xocode-select --install
- Rust
$ brew install rust
$ rustc --version
rustc 1.79.0 (129f3b996 2024-06-10) (Homebrew)
- Javascirpt ecosystem
$ brew install node
$ brew install pnpm
$ node -v
v22.5.1
$ pnpm -v
9.6.0
$ pnpm create vite
.../191022c54b0-1753a | +1 +
.../191022c54b0-1753a | Progress: resolved 1, reused 1, downloaded 0, added 1, done
✔ Project name: … pilot-desk
✔ Target directory "pilot-desk" is not empty. Please choose how to proceed: › Ignore files and continue
✖ Select a framework: › React
✖ Operation cancelled
macuser03@macuser03noMacBook-Pro front-pilot % pnpm create vite
✔ Project name: … pilot-desk
✔ Target directory "pilot-desk" is not empty. Please choose how to proceed: › Remove existing files and continue
✔ Select a framework: › React
✔ Select a variant: › TypeScript + SWC
Scaffolding project in /Users/macuser03/works/practice/ansible/nopilot/front-pilot/pilot-desk...
Done. Now run:
cd pilot-desk
pnpm install
pnpm run dev
Create the Rust Project
- Install Tauri CLI
pnpm add -D @tauri-apps/cli
- create tauir
pnpm tauri init ✔ What is your app name? · pilot-desk ✔ What should the window title be? · pilot-desk ✔ Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri/tauri.conf.json" file that will be created? · ../build ✔ What is the url of your dev server? · http://localhost:5173 ✔ What is your frontend dev command? · pnpm run dev ✔ What is your frontend build command? · pnpm run build
- run
$ pnpm run dev VITE v5.3.5 ready in 1074 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ➜ press h + enter to show help