Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.51 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.51 KB

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 convex convex-app
# or
yarn create next-app --example convex convex-app
# or
pnpm create next-app --example convex convex-app

Log in to Convex,

npx convex login

initialize a new Convex project,

npx convex init

and then run the following two commands in two different terminals:

npx convex dev
npm run dev

Once everything is working, commit your code and deploy it to the cloud with Vercel (Documentation).

Use npx convex deploy && npm run build as the build command and set the CONVEX_DEPLOY_KEY environmental variable in Vercel (Documentation).