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.
- 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
- Java 21
- Spring Boot 3.x
- Maven for project build and dependency management
- HTML, CSS, JavaScript for the frontend
- Java 17 or higher installed
- Maven installed
- Clone the repository:
git clone <your-repo-url>
cd jokeapi
- Build and Run:
mvn clean
mvn spring-boot:run
- Open You browser
paste this
http://localhost:8080