Clave Docs
Guides

Getting Started

Set up your development environment and get Clave running locally.

Prerequisites

Before you begin, ensure you have the following installed:

  • Bun (v1.1+) — fast JavaScript runtime and package manager
  • Node.js (v20+) — required by some tooling
  • A Convex account — for the real-time backend
  • A Google OAuth app — for authentication

Clone and install

git clone https://github.com/your-org/clave.git
cd clave
bun install

Configure environment

Copy the example environment file and fill in your credentials:

cp .env.example .env.local

Required variables

VariableDescription
CONVEX_DEPLOYMENTYour Convex deployment URL
NEXT_PUBLIC_CONVEX_URLPublic Convex URL for the client
AUTH_GOOGLE_IDGoogle OAuth client ID
AUTH_GOOGLE_SECRETGoogle OAuth client secret

Optional variables

VariableDescription
GITHUB_PERSONAL_ACCESS_TOKENFor bug report → GitHub Issues integration
GITHUB_REPO_OWNERGitHub repository owner
GITHUB_REPO_NAMEGitHub repository name

Start the development server

Run the full-stack development server:

bun run dev

This starts both the Convex backend and Next.js frontend. The app will be available at http://localhost:4000.

Split-terminal mode

For independent control over each process:

# Terminal 1 — Convex backend
bun run dev:convex

# Terminal 2 — Next.js frontend
bun run dev:next

First-time setup

  1. Open http://localhost:4000
  2. Sign in with your Google account
  3. Create a new workspace — choose a name and slug
  4. You're ready to start creating projects, issues, and documents

Troubleshooting

Port already in use

If you see EADDRINUSE on port 4000:

bun run clean

Stale processes

If the dev server behaves unexpectedly:

bun run clean
bun run dev

Next steps

On this page