Zap Studio

Getting Started

Set up Local.ts and run your first build.

This guide walks you through setting up Local.ts and running your first build.

Prerequisites

Before you begin, make sure you have the following installed:

Optional: Diesel CLI

For database migrations, optionally install Diesel CLI:

cargo install diesel_cli

Installation

1. Clone the Repository

git clone https://github.com/zap-studio/local.ts.git my-app
cd my-app

2. Install Dependencies

pnpm install

This installs npm packages.

3. Run in Development Mode

turbo tauri -- dev

This starts the Vite development server with hot reload and opens your app in a native window. Changes to your React code will update instantly.

Building for Production

Create a production build for your current platform:

turbo tauri -- build

The output will be in src-tauri/target/release/bundle/ with platform-specific installers.

Customizing Your App

After cloning, update your app's name, version, and branding. See the Project Identity guide for a complete walkthrough.

Available Run Scripts

Local.ts includes several scripts to streamline your development workflow.

CommandDescription
turbo devStart Vite dev server (frontend only)
turbo tauri -- devStart full app with hot reload
turbo tauri -- buildBuild for production
turbo checkTypeScript type checking
turbo lintRun linter
turbo formatFormat code
turbo testRun tests
turbo validateRun build, check, lint, and test to validate everything passes

Tip

The validate script is useful before committing or deploying — it ensures your code builds correctly and passes all quality checks in one command.

Edit on GitHub

Last updated on

On this page