Skip to main content
Version: Next

Getting Started

This guide will help you set up and run the monorepo locally.

Prerequisites

ToolVersionPurpose
Node.js≥ 20.0JavaScript runtime
pnpm≥ 8.0Package manager
RustLatest stableTauri backend
# Install pnpm globally
npm install -g pnpm

# Verify installations
node --version
pnpm --version
rustc --version

Installation

# Clone the repository
git clone <your-repo-url>
cd test-learn

# Install all dependencies
pnpm install

Running the Applications

Tauri Desktop App

# From root
pnpm --filter tauri-app tauri dev

# Or navigate to the app
cd apps/tauri-app
pnpm tauri dev

Cloudflare Worker (Local)

# From root
cd apps/cloudflare-d1-worker
pnpm dev

The worker will be available at http://localhost:8787.

Documentation Site

cd apps/docs
pnpm start

Project Structure

test-learn/
├── apps/
│ ├── tauri-app/ # Desktop application
│ │ ├── src/ # React frontend
│ │ └── src-tauri/ # Rust backend
│ ├── cloudflare-d1-worker/ # Backend API
│ │ └── src/ # Worker source
│ └── docs/ # This documentation
├── pnpm-workspace.yaml # Workspace config
└── package.json # Root scripts

Quick Test

After starting both apps, you can verify the connection:

// Test tRPC connection (in browser console)
const response = await fetch('http://localhost:8787/trpc/healthCheck');
const data = await response.json();
console.log(data); // { result: { data: { text: 'Cloudflare D1 Worker is running!' } } }

Next Steps