This project is a modern fullstack template using:
- Tauri v2 for building secure and native cross-platform desktop apps.
- Drizzle ORM for type-safe database access.
- SQLite as the local database, accessed via a custom Rust proxy.
- Fully async database access using
sqlx
and Tauri commands. - Auto-generated SQL migrations from Drizzle.
- Seamless integration with
drizzle-orm/sqlite-proxy
.
-
Install dependencies:
git clone https://github.com/meditto/tauri-drizzle-proxy.git cd tauri-drizzle-proxy pnpm install
-
Generate database types & migrations:
pnpm db:generate
-
Run the app (this will automatically run pending migrations):
pnpm tauri dev
🛠 Migrations will automatically apply when running the app.
-
Update schema:
If you modify the schema (in
src/db/schema
), make sure to regenerate migrations/types:pnpm db:generate