This document provides an overview and details of the Cricket Score App developed using Java Spring Boot, Jsoup for web scraping, and HTML, CSS, and JavaScript for the frontend UI. The application runs on the default port localhost:8080.
- Introduction
- Technologies Used
- Setup and Installation
- Project Structure
- Endpoints
- Future Enhancements
The Cricket Score App is designed to fetch and display live cricket scores. The backend of the application is built using Java Spring Boot, and it uses Jsoup for web scraping to fetch the latest cricket scores from a specified website. The frontend is created using HTML, CSS, and JavaScript to provide a user-friendly interface.
- Java Spring Boot: For creating the RESTful web services.
- Jsoup: For web scraping to fetch live cricket scores.
- HTML/CSS/JavaScript: For the frontend UI.
Prerequisites
- Java Development Kit (JDK) 8 or higher
- Maven
- An IDE (e.g., IntelliJ IDEA, Eclipse)
- Internet connection
cricket-score-app ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ └── example │ │ │ └── cricketapp │ │ │ ├── CricketAppApplication.java │ │ │ ├── controller │ │ │ │ └── ScoreController.java │ │ │ ├── service │ │ │ │ └── ScoreService.java │ │ │ └── model │ │ │ └── Score.java │ │ ├── resources │ │ │ └── application.properties │ │ └── webapp │ │ └── index.html │ └── test │ └── java │ └── com │ └── example │ └── cricketapp │ └── CricketAppApplicationTests.java ├── pom.xml └── README.md
- Ensure all dependencies are installed and the project is built.
- Run the Spring Boot application.
- Open a web browser and navigate to http://localhost:8080 to view the live cricket scores.
GET /api/scores: Fetches the live cricket scores.
- Add authentication and authorization.
- Enhance the UI with frameworks like React or Angular.
- Implement a caching mechanism to reduce load on the web scraping service.
- Schedule periodic updates to fetch scores at regular intervals.