https://github.com/thatplatypus/jokeai
A Next-JS and OpenAI powered Joke generator app 🃏
https://github.com/thatplatypus/jokeai
ai jokes nextjs openai shadcn-ui tailwindcss
Last synced: 6 months ago
JSON representation
A Next-JS and OpenAI powered Joke generator app 🃏
- Host: GitHub
- URL: https://github.com/thatplatypus/jokeai
- Owner: thatplatypus
- License: mit
- Created: 2025-02-11T01:21:02.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T03:57:39.000Z (8 months ago)
- Last Synced: 2025-02-11T04:24:22.714Z (8 months ago)
- Topics: ai, jokes, nextjs, openai, shadcn-ui, tailwindcss
- Language: TypeScript
- Homepage: https://joke-ai-iota.vercel.app
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Joke Generator
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## Features
- Generate AI-powered jokes
- View recently generated jokes
- Light/Dark Mode
## Getting Started
1. Clone this repository
2. Install dependencies:
```bash
npm install
```
3. Copy `.env.example` to `.env.local` and add your OpenAI API key:
```bash
OPENAI_API_KEY=your-key-here
```
4. Run the development server:
```bash
npm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
## Tech Stack
- Next.js 14
- TypeScript
- Tailwind CSS
- OpenAI API## License
MIT