How gupcus/poc-tauri works
Project type and purpose
• This is a proof-of-concept desktop application built with the Tauri framework.
• It combines a React/Vite front-end (written in TypeScript/JSX) with a Rust-based backend (the Tauri “core” in src-tauri).
• Its domain logic revolves around a simple “note” model (see src/nota/nota.entity.ts and nota.controller.ts).
File structure
Top-level:
• package.json, pnpm-lock.yaml, vite.config.ts, tsconfig*.json → front-end build & dependency config (pnpm + Vite + TS).
• index.html → main HTML shell for the React app.
• src/ → React app code + domain logic:
– App.tsx, main.tsx → application entry points.
– components/ & layouts/ → UI composition (buttons, note cards, layouts).
– nota/ → domain layer: controller + entity (MVC-style separation within the front end).
– pages/ → application routes/views (Home, NewNote, Note).
– styles/ → CSS assets.
• src-tauri/ → Rust project for Tauri:
– Cargo.toml / Cargo.lock → Rust dependency config.
– src/main.rs + src/lib.rs → Rust code that initializes the Tauri runtime, defines commands exposed to the front end.
– build.rs & tauri.conf.json → build hooks + Tauri configuration (window settings, menus, permissions/capabilities).
– capabilities/default.json → permissions requested by the app (e.g., filesystem).
Extract README insights
• Purpose: demonstrate how to bootstrap and run a Tauri desktop application using pnpm and Rust.
• Prerequisites: Rust toolchain, C++ build tools, VSCode extensions (Tauri, rust-analyzer).
• Commands: pnpm install + pnpm tauri dev to build & launch.