To run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the app running.
TIP: Ask your AI Coding Assistant to update the landing page with your own content.
This template contains an alternative dashboard that uses Convex for your backend needs (database, real-time updates, serverless functions, background jobs) and Clerk for authentication. Both services offer generous free tiers and are perfect for getting started quickly.
- Replace the existing
/dashand/loginfolders and move the/middleware.tsfile.
src/app/_dash-with-convex-and-clerk/
├── dash -> src/app/dash
├── login -> src/app/login
└── middleware.ts -> src/middleware.ts
- Configure your environment variables:
- Copy the
.env.examplefile into a new.envfile. - Update the environment variables in
.envwith your Convex and Clerk account values. - Update the environment validation files:
src/lib/client-env.ts src/lib/server-env.ts
- Update
src/app/providers.tsxto use the new env varclientEnv.NEXT_PUBLIC_CONVEX_URLfor Convex client initialization:const convex = new ConvexReactClient(clientEnv.NEXT_PUBLIC_CONVEX_URL)
- Update
src/app/layout.tsxto use theProviderscomponent fromsrc/app/providers.tsx