Watch: Set up Convex as my app's backend | Vovy

Watch Vovy do it on a Mac: "Add Convex to my React app with a real-time tasks table". Run npx convex dev to create a Convex project, write your first query and mutation, and get live-updating data in your React app.

"Add Convex to my React app with a real-time tasks table"

Run npx convex dev to create a Convex project, write your first query and mutation, and get live-updating data in your React app.

What happens in the video

  1. Install Convex: Vovy installs the convex package with npm and runs npx convex dev. You sign in with GitHub in the browser when asked.
  2. Create the project: Convex creates a dev deployment and a convex/ folder in your code. Vovy keeps convex dev running so changes sync as you save.
  3. Write a query and a mutation: A query reads data and a mutation changes it. Vovy writes both in TypeScript for your tasks, plus a schema so bad data is rejected.
  4. Connect your React app: Vovy wraps your app in ConvexProvider and swaps a component to use useQuery, so the list updates live without a refresh.
  5. Show it live: Vovy adds a task in one window and shows it appear in another instantly, then opens the Convex dashboard to show the data.
Read the step-by-step guide