This guide walks through the current local development workflow for Vector.
- mise (installs the pinned Node.js and pnpm versions from
mise.toml) - A local Convex development deployment
-
Install the pinned toolchain
mise install
-
Install dependencies
pnpm install
-
Create local environment variables
cp sample.env .env.local
-
Update
.env.localMinimum local app setup usually includes:
NEXT_PUBLIC_APP_URL=http://localhost:3000BETTER_AUTH_TRUSTED_ORIGINS=http://localhost:3000BETTER_AUTH_SECRET=<your-secret>NEXT_PUBLIC_CONVEX_URL=<your-local-convex-url>CONVEX_SITE_URL=http://127.0.0.1:3211NEXT_PUBLIC_CONVEX_SITE_URL=http://127.0.0.1:3211
See Environment Variables for the full breakdown.
-
Start Convex
pnpm run convex:dev
Keep this running while you work on Convex functions or schema changes so generated bindings stay current.
-
Start Next.js
pnpm run dev
-
Open the app
Visit http://localhost:3000.
-
Bootstrap the first admin
On a fresh local instance, open http://localhost:3000/setup-admin to create the initial administrator account.
pnpm run project:setupis available as a lightweight bootstrap helper for dependencies and Git hooks.- Optional SMTP settings can be left unset during local development.
- Optional VAPID settings are only needed if you want browser push notifications locally.