ARCHE
FamiliesDocsExamplesBlogGitHub ↗
Documentation

Start

  • Getting started
  • Philosophy

Guides

  • First hour
  • Agent context
  • Verification
  • Package managers
  • Scaffold lifecycle
  • Showcase & portfolio

Walkthroughs

  • TypeScript fullstack
  • Convex product
  • Rust API & fullstack
  • Solana family
  • Customize & experiments
  • Automation (JSON/MCP)

CLI

  • Overview
  • Flags
  • Subcommands
  • Generated output

Presets

  • Preset catalog

Stack

  • TypeScript architecture
  • Convex
  • Rust
  • Solana
  • Authentication
  • Prisma store
  • tRPC

Operations

  • Deployment
  • Environment variables
  • Workers & queues
  • CI & testing
  • Scaling
  • Security
  • Troubleshooting

Reference

  • Stack links
  • Capabilities
  • This source repo
  • Code examples
← Documentation

Convex product walkthrough

Scaffold Next.js + Convex with Better Auth stubs and the Convex dev loop.

1 min read

Goal: Generate convex-product and run the Convex + Next.js development loop.

Preset: convex-product — Next.js + Convex functions, schema samples, Better Auth integration stubs. No Express, no Prisma in this shape.

Scaffold

terminal
bun run dev:cli -- my-convex-app --yes --preset=convex-product --dir=../projects

Layout

See Convex architecture for the request path. Typical tree:

terminal
apps/web/
  convex/           functions, schema, http routes
  app/              Next.js routes

After scaffold

terminal
cd ../projects/my-convex-app
bun install
cd apps/web
npx convex dev

In another terminal, run the web app per generated AGENTS.md (usually bun dev from the app or monorepo root).

Auth note

Better Auth stubs point at Convex HTTP routes. Finish provider keys in .env before claiming production auth is done. Deep integration notes live in the template repo docs/convex-integration.md.

Verify

Run the preset’s documented ci or lint scripts from generated package.json. Convex presets record partial verification columns—treat green CI in your environment as the bar.

Common failures

SymptomFix
Convex CLI not foundbun add convex in apps/web or use bunx convex dev
Schema push errorsCheck convex/schema.ts and deployment selection
Auth redirect mismatchAlign SITE_URL / Better Auth URLs with dev ports

Next steps

  • Convex architecture
  • Stack links
  • Preset catalog