Modern, production-ready SaaS starter template for building full-stack React applications
Prerequisites
v24.x.y
(at the time of writing: 24.1.0)
git@github.com:username/repo-name.git
)
VITE_CLERK_PUBLISHABLE_KEY
and CLERK_SECRET_KEY
from the ‘API Keys’ section.env
file later)OPENAI_API_KEY
Clone and Setup Project
--legacy-peer-deps
because some packages might have React 18 peer dependencies while we’re using React 19.Configure Features Step by Step
config.ts
file to disable all features:
http://localhost:5173
- you should see the homepage load successfully
config.ts
:
.env.local
file env vars (VITE_CONVEX_URL, CONVEX_DEPLOYMENT).env.local
file:
https://your-app.clerk.accounts.dev
)VITE_CLERK_FRONTEND_API_URL
with the Issuer URL from step 4.env.local
file:
VITE_CONVEX_URL
config.ts
:
https://abc123.ngrok.io
)
.env.local
file:
.convex.site
)https://your-deployment.convex.site/payments/webhook
4242 4242 4242 4242
, any future date, any CVCconfig.ts
:
re_
)onboarding@resend.dev
(works immediately)noreply@yourdomain.com
(after verification).convex.site
)https://your-deployment.convex.site/resend-webhook
email.*
events/dashboard
(must be authenticated)config.ts
:
OPENAI_API_KEY=sk-...
FRONTEND_URL
in your .env.local
file with the new ngrok URLFRONTEND_URL
with the new ngrok URLvitest.config.ts
with the new ngrok URLlocalhost:5173
for general development.Building the Product
Testing Your Application
Deploying the App to Production