5891dae6f7
Remove semicolon from Convex example. ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) |
||
---|---|---|
.. | ||
convex | ||
pages | ||
public | ||
styles | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.json | ||
next-env.d.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
Convex
This example demonstrates the Convex global state management framework.
Deploy your own
Deploy the example using 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).