This is a template for a new Stack Auth + Convex + Next.js app.
-
Clone the repository
git clone https://github.com/stack-auth/convex-next-template.git
-
Install dependencies
cd convex-next-template npm install -
Register an account on Stack Auth, copy the keys from the dashboard, and paste them into the
.envfile -
Start the development server and go to http://localhost:3000
npm run dev
-
Go to https://dashboard.convex.dev and select the project you just connected. Click "Settings", then "Environment Variables" and add your stack auth environment variables from step 3.