10 - February - 2025
npm run dev
npx convex dev
- npx create-next-app@15.0.3 .
- npm i convex
- npm i @clerk/nextjs
- npm i svix --legacy-peer-deps
- npm i zustand --legacy-peer-deps
- npm i lucide-react --legacy-peer-deps
- npm i framer-motion --legacy-peer-deps
- npm i @monaco-editor/react --legacy-peer-deps
- Project cleanup
- Convex database with Clerk auth setup
- Schema define for convex db
- Webhook is automated messages sent from app, when some event happens.
Step 1:- go to
---------------
https://dashboard.clerk.com >>>
PROJECT_NAME > Configure > Developers | Webhooks >>> +Add Endpoints
https://PROJECT_URL.convex.site/clerk-webhook
then:- Subscribe to events - checkbox:- user > user.created > [click] Create
then:- copy - [Signing Secret]
Step 2:- go to
---------------
https://dashboard.convex.dev >>>
PROJECT_NAME > Settings > Environment Variables >>> +Add
CLERK_WEBHOOK_SECRET = *********************
So after all this setup,
form this project when a user auth by clerk...
then:- this user save into convex database...
- Webhooks as a Service - SVIX - Clerk use this webhook behind the screen