Reactive database
Convex is a Backend Application Platform that keeps you focused on building your product.
Convex Functions, Database, File Storage, Scheduling, and Search fit together cohesively. Everything in Convex is live and realtime.
This integration allows seemlessly creating Convex database through Vercel and connecting your Convex deployments to your frontend.
The Convex CLI will be your primary tool for developing with Convex.
Run this command in your terminal to login to Convex with your Vercel account:
npx convex login --vercel
Now that you've logged into Convex, you can start building!
For new projects, run the following command in your terminal to create a new Convex application: npm create convex@latest -- --with-vercel-json
For existing projects, you can learn how to integrate Convex into your codebase by following a quickstart guide for your language or framework.
Optional: To begin local development by running npx convex dev in your terminal. Follow the prompts to "Choose an existing project" in your Convex team created for the Vercel marketplace, and select this project.
Connect your Convex project to a Vercel project to sync your Convex deploy keys to Vercel.
This will allow you to automate deployment to Convex Production and Preview environments in the next step.
Important: for this integration to be able deploy your Convex backend, you must enable the "Production" and "Preview" environments and you must keep the "Custom Prefix" field empty.
If you used npm create convex@latest -- --with-vercel-json to create your project, you can skip this step.
Under your Vercel project's Settings > Build and Deployment page, override your build command to automate deploying to your Convex backend.
The command override will generally be:
npx convex deploy --cmd 'npm run build'
In Convex, you write your backend logic in JavaScript (or TypeScript).
Convex provides a React client for easy integration with any React framework, as well as many other frameworks.