A modern, production-ready AI content generator built with Next.js 14, TypeScript, and OpenAI's GPT-4.
- 🎯 User-friendly interface for content generation
- 🌙 Dark mode support
- 📱 Fully responsive design
- ⚡ Real-time streaming responses
- 🔒 Rate limiting for API protection
- 📋 Copy-to-clipboard functionality
- 🎨 Beautiful UI with shadcn/ui components
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- Vercel AI SDK
- shadcn/ui components
- OpenAI GPT-4
- Upstash Redis (for rate limiting)
- Clone the repository:
git clone https://github.com/yourusername/ai-content-generator.git
cd ai-content-generator- Install dependencies:
npm install- Copy the environment variables:
cp .env.local.example .env.local-
Update the environment variables in
.env.localwith your:- OpenAI API key
- Upstash Redis credentials (for rate limiting)
-
Run the development server:
npm run dev- Open http://localhost:3000 in your browser.
The easiest way to deploy this application is using Vercel:
- Push your code to a GitHub repository
- Import the project in Vercel
- Add your environment variables in the Vercel dashboard
- Deploy!
OPENAI_API_KEY: Your OpenAI API keyUPSTASH_REDIS_REST_URL: Your Upstash Redis URLUPSTASH_REDIS_REST_TOKEN: Your Upstash Redis token
MIT