Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1000 Bytes

File metadata and controls

54 lines (37 loc) · 1000 Bytes

Development

Quick Start

You must have Bun, Rust, and Docker installed first. Then:

# Install dependencies
make setup

# Set up .env files
cp .env.example .env
cd backend && cp .env.example .env
cd ..

# Run postgres + powersync
make docker-up

# Run backend
# cd backend && bun dev

# Browser:
bun dev
# -> open http://localhost:1420 in your browser.

# Desktop
bun tauri:dev:desktop

# iOS Simulator
bun tauri:dev:ios

# Android Emulator
bun tauri:dev:android

Testing

# Run frontend tests (src/ and scripts/)
bun run test

# Run frontend tests in watch mode
bun run test:watch

# Run backend tests
bun run test:backend

# Run backend tests in watch mode
bun run test:backend:watch

Note: Don't use bun test without the npm script from the project root, as it will pick up both frontend and backend tests. The test script is configured to only run tests in ./src and ./scripts directories.

See testing.md for detailed testing guidelines.