This is a Next.js project bootstrapped with create-next-app.
Create a .env.local file in the root directory with the following variables:
# AI Services
GEMINI_API_KEY=your_gemini_api_key_here
GROQ_API_KEY=your_groq_api_key_here
# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_publishable_key_here
CLERK_SECRET_KEY=your_clerk_secret_key_here
CLERK_WEBHOOK_SECRET=your_clerk_webhook_secret_here
# Application Settings
SITE_URL=http://localhost:3000
NODE_ENV=development
ADMIN_EMAIL=admin@example.com
# RAG Service (Optional - for enhanced AI responses)
RAG_API_URL=http://localhost:8000
SUPABASE_URL=your_supabase_url_here
SUPABASE_SERVICE_KEY=your_supabase_service_key_hereFirst, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
- Go to your Vercel project dashboard
- Navigate to Settings → Environment Variables
- Add the following environment variables:
| Variable Name | Value | Environment |
|---|---|---|
GEMINI_API_KEY |
Your Gemini API key | Production, Preview, Development |
GROQ_API_KEY |
Your Groq API key | Production, Preview, Development |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY |
Your Clerk publishable key | Production, Preview, Development |
CLERK_SECRET_KEY |
Your Clerk secret key | Production, Preview, Development |
CLERK_WEBHOOK_SECRET |
Your Clerk webhook secret | Production, Preview, Development |
SITE_URL |
Your production URL | Production, Preview, Development |
ADMIN_EMAIL |
Admin email address | Production, Preview, Development |
RAG_API_URL |
Your RAG API URL (optional) | Production, Preview, Development |
SUPABASE_URL |
Your Supabase URL (optional) | Production, Preview, Development |
SUPABASE_SERVICE_KEY |
Your Supabase service key (optional) | Production, Preview, Development |
- Redeploy your project after adding the environment variables
Check out Next.js deployment documentation for more details.