Convex

This example demonstrates the Convex global state management framework.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-convex with-convex-app
# or
yarn create next-app --example with-convex with-convex-app
# or
pnpm create next-app --example with-convex with-convex-app

Log in to Convex,

npx convex login

initialize a new Convex project,

npx convex init

and push the Convex functions for this project.

npx convex push

Now you can run your code locally with a Convex backend with

npm run dev

Deploy it to the cloud with Vercel (Documentation).