Skip to content

thatplatypus/JokeAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Joke Generator

image

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
image

Getting Started

  1. Clone this repository
  2. Install dependencies:
    npm install
  3. Copy .env.example to .env.local and add your OpenAI API key:
    OPENAI_API_KEY=your-key-here
  4. Run the development server:
    npm run dev

Open http://localhost:3000 with your browser to see the result.

Tech Stack

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • OpenAI API

License

MIT

About

A Next-JS and OpenAI powered Joke generator app πŸƒ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published