
A simple demo project built with Next.js that generates jokes using AI. Built to demonstrate Next.js 14 features including:
- Server-side API routes with OpenAI integration
- Server and client components
- Basic routing
- TypeScript support
- Redis-based KeyVaulue temporary persistence with client caching
- Generate AI-powered jokes
- View recently generated jokes
- Light/Dark Mode

- Clone this repository
- Install dependencies:
npm install
- Copy
.env.example
to.env.local
and add your OpenAI API key:OPENAI_API_KEY=your-key-here
- Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
- Next.js 14
- TypeScript
- Tailwind CSS
- OpenAI API
MIT