This template provides a minimal setup to get Convex working, with TypeScript, ESLint and React using Vite. It uses Clerk for user authentication.
Start by editing convex/myFunctions.ts
and interact with your React app.
See Convex docs at https://docs.convex.dev/home
npm create convex@latest -t react-vite-clerk-shadcn
Then:
- Follow steps 1 to 3 in the Clerk onboarding guide
- Paste the Issuer URL as
CLERK_JWT_ISSUER_DOMAIN
to your dev deployment environment variable settings on the Convex dashboard (see docs) - Paste your publishable key as
VITE_CLERK_PUBLISHABLE_KEY="<your publishable key>"
to the.env.local
file in this directory.
If you want to sync Clerk user data via webhooks, check out this example repo.