This project is an AI Content Generation Dashboard built using Next.js, Drizzle ORM, NEON PostgreSQL, Tailwind CSS, and TypeScript (tsx). The dashboard allows users to generate AI content and view their history of generated content.
Clone the Repository ```bash git clone https://github.com/Varunv003/Ai-content_generator-nextjs cd ai-content-generation-dashboard ```
Install Dependencies ```bash npm install ```
Set Up Environment Variables Create a `.env.local` file in the root directory and add the following environment variables: ```env NEXT_PUBLIC_DRIZZLE_DB_URL=your-neon-postgresql-url NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your-clerk-publishable-key CLERK_SECRET_KEY=your-clerk-secret-key GOOGLE_GEMINI_API_KEY=your-google-gemini-api-key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up ```
Run Database Migrations ```bash npm run db:migrate ```
Start the Development Server ```bash npm run dev ```
Visit the Application Open your browser and go to `http://localhost:3000\`.
The database schema is defined in `utils/schema.tsx`