New:New releases:CLIcreate-clubedge-app v0.49.1·Clubedge Starter v0.32.0

Clubedge Starter Docs

Commands

The scripts you run from the repository root.

Run these from the repository root.

Develop and build

CommandPurpose
pnpm devStart the web app in development mode.
pnpm buildCreate a production build.
pnpm startStart the production build.
pnpm lintRun ESLint, then each app's own lint script.
pnpm typecheckTypecheck the workspaces.
pnpm testRun Vitest, then each app's own tests.
pnpm test:watchRun Vitest in watch mode.
pnpm test:e2eRun Playwright browser checks.
pnpm test:e2e:uiOpen the browser checks in Playwright's UI mode.
pnpm formatFormat supported repository files.
pnpm format:checkCheck formatting without writing files.

In a project with a frontend and its API, pnpm dev and pnpm start start the API too, on port 3001, and the frontend forwards /api to it. pnpm lint, pnpm typecheck, and pnpm test also run the API's own scripts: with FastAPI, ruff, mypy, and pytest through uv.

In a project without a website, pnpm dev and pnpm start run the API alone, on port 3001, and there are no browser checks: no pnpm test:e2e or pnpm test:e2e:ui.

Playwright's first run may require installing Chromium with pnpm exec playwright install chromium. CI runs the browser checks automatically.

Database

CommandPurpose
pnpm db:generateGenerate Drizzle migrations from the schemas.
pnpm db:migrateApply checked-in Drizzle migrations.
pnpm db:pushPush schema directly (local development only).
pnpm db:studioOpen Drizzle Studio.
pnpm db:checkCheck migration consistency.
pnpm db:seedSeed the configured database.

See Database.

Docker

CommandPurpose
pnpm docker:devBuild and start docker-compose.yml (with a separate API, both images). It names the file, so a compose.yaml from pnpm clubedge deploy doesn't take its place (Starter v0.27.0).
pnpm docker:buildBuild the production image from the root Dockerfile.
pnpm docker:startRun that image on port 3000 with apps/web/.env.local.

Without a website, pnpm docker:dev runs the API alone, on port 3001, and there is no docker:build or docker:start: the image is apps/api/Dockerfile. See Docker.

Local services

pnpm check:services checks every configured service with a real round trip. pnpm check:env checks that the environment has every production variable the project's modules need, without connecting to anything; Vercel and Netlify builds run it first (Vercel, Netlify). With a separate API, both run the API's own checks. The infra:* commands depend on your local services choice:

  • pnpm infra:up and pnpm infra:down: start and stop the local services from docker-compose.dev.yml.
  • pnpm infra:reset: stop them and delete their data. pnpm infra:logs follows their logs.

Some modules add a service to run next to pnpm dev:

  • pnpm auth:dev, with --auth firebase: start Firebase's Auth Emulator on port 9099. See Authentication.
  • pnpm jobs:dev, with --jobs inngest: start Inngest's Dev Server on port 8288. See Background jobs.

With Neon there is nothing to start: pnpm clubedge neon shows the database's status, neon claim keeps it, and neon create makes a new one. See A database on Neon.

The mobile app

In a project with a mobile app (--shell capacitor):

CommandPurpose
pnpm --filter @clubedge/shell androidBuild the app for Android and open it in Android Studio. The first run creates apps/shell/android.
pnpm --filter @clubedge/shell iosThe same for iOS and Xcode, on a Mac. The first run creates apps/shell/ios.
pnpm --filter @clubedge/shell syncCopy a new build of the web app into the native projects.

Add --demo to any of these for the demo: sample data on the device, and no server.

The native app

In a project with the native app (--mobile expo):

CommandPurpose
pnpm --filter @clubedge/mobile-app androidBuild the app, install it on the Android emulator or a phone, and start Expo's dev server. The first run generates apps/mobile/android.
pnpm --filter @clubedge/mobile-app iosThe same for iOS, on a Mac. The first run generates apps/mobile/ios.
pnpm --filter @clubedge/mobile-app startStart the dev server for the app already installed.
pnpm --filter @clubedge/mobile-app prebuildGenerate android/ and ios/ from app.config.ts, to build a release in Android Studio or Xcode.

In development, the app calls the API that pnpm dev serves, so start it first.

The project itself

CommandPurpose
pnpm clubedge statusThe project's Starter release, modules, and Git state, and the command to run next.
pnpm clubedge doctorCheck Node.js, pnpm, dependencies, the lockfile, and the env file, then pnpm check:services.
pnpm clubedge add <module> <option>Add a module or switch its option.
pnpm clubedge remove <module>Remove one or more modules.
pnpm clubedge upgradeMove the project to the newest Starter release.
pnpm clubedge deployDeploy to the project's platform, creating what it runs on the first time.

See Check a project, Change a project, and Deploy.

How is this guide?