Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 1.88 KB

File metadata and controls

89 lines (60 loc) · 1.88 KB

Contributing to Grida


First, clone the repo with git submodules (required for canvas/WASM builds; GitHub Desktop clones submodules automatically).

# clone the repo
git clone --recurse-submodules https://github.com/gridaco/grida
cd grida

# or, if you already cloned without --recurse-submodules
git submodule update --init

# setup node & package manager
nvm use
corepack enable pnpm

# install just
brew install just

# install typos (typo checker)
brew install typos

Rust / Canvas (Skia) prerequisites

Some Rust crates (e.g. the canvas backend) build Skia via skia-bindings, which requires ninja to be available on your system.

macOS

brew install ninja
ninja --version

Ubuntu/Debian

sudo apt-get update
sudo apt-get install -y ninja-build
ninja --version

Then, install the dependencies and run the development server:

# (1) install dependencies
pnpm install

# run all (not recommended)
pnpm turbo dev

# run specific app
pnpm dev:editor

# or simply..
cd editor
pnpm dev # (cwd:/editor)

# -----
# building
pnpm turbo build

Open http://localhost:3000 with your browser to see the result.

Packaging canvas wasm

just build canvas wasm

Running backend (supabase) locally

  • follow this guide to run supabase locally
    • supabase cli required (brew install supabase/tap/supabase)
    • docker desktop required
  • for Grida-specific Supabase setup (migrations, env, signing keys), see supabase/README.md.

Support

If you have any problem running the project locally or for any further information, please contact us via Slack.

See Also

  • AGENTS.md has a comprehensive list of the project structure and the purpose of each directory and file.