This is a web-based News App developed using Java with the Spring framework and Thymeleaf templating engine. It utilizes the NewsAPI to provide users with up-to-date news articles from various sources. The application allows users to search for news articles by keywords, view headlines, and read full articles. This project serves as an excellent demonstration of building a news aggregator web application using Spring Boot.
- User-friendly web interface.
- Search for news articles by keywords.
- View top headlines from various sources.
- Responsive design for mobile and desktop.
Before getting started, ensure you have the following prerequisites:
- Java Development Kit (JDK) installed.
- Maven build tool installed.
- Spring Boot framework.
- NewsAPI API Key (obtain it here).
- Internet connectivity for fetching news data.
Follow these steps to use the application:
- Clone the repository to your local machine.
- Replace
YOUR_API_KEY
inenv
class within the services package with your NewsAPI API Key. - Open the project in your preferred IDE.
- Build and run the application.
- Access the web interface via your browser.
- Enter keywords in the search bar to find news articles related to your query.
- Click on headlines to read full articles.
- Stay updated with the latest news!
- Spring Framework - Java framework for building web applications.
- Thymeleaf - Server-side Java template engine.
- NewsAPI - API for fetching news articles.
- Bootstrap - Front-end framework for responsive design.
- Font Awesome - Icons used in the project.
Include screenshots of your application here, demonstrating its functionality and design.
Feel free to reach out if you encounter any issues or have questions about the application!