Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1016 Bytes

File metadata and controls

51 lines (36 loc) · 1016 Bytes

Joke API – Random Joke Generator

A simple Java Spring Boot web application that serves random jokes via an API and displays them in a dynamic web page. Each joke changes when you click a button, with a smooth fade-in/fade-out animation.


🛠 Features

  • Random jokes served via a REST API (/joke)
  • Frontend HTML page with a “Get a New Joke” button
  • Smooth fade-out and fade-in animation for new jokes
  • Fully static frontend served from Spring Boot
  • Easy to extend with more jokes or endpoints

💻 Technologies Used

  • Java 21
  • Spring Boot 3.x
  • Maven for project build and dependency management
  • HTML, CSS, JavaScript for the frontend

🚀 Getting Started

Prerequisites

  • Java 17 or higher installed
  • Maven installed

Installation & Run

  1. Clone the repository:
git clone <your-repo-url>
cd jokeapi
  1. Build and Run:
mvn clean
mvn spring-boot:run
  1. Open You browser paste this
http://localhost:8080