This repository contains a simple News App that uses the NewsAPI.org API to fetch news articles. The app is built using HTML, CSS, and JavaScript, and it includes a search bar for filtering news articles based on keywords.
- Fetches and displays the latest news articles from various sources using the NewsAPI.org API.
- Allows users to search for specific news articles using the provided search bar.
- Provides a clean and responsive user in 7669 terface for an optimal viewing experience on different devices.
- HTML5
- CSS3
- JavaScript
- Clone the repository.
git clone https://github.com/Krishnam2411/news-app.git
- Go to the project directory.
cd news-app
- API Key Setup - In order to use the NewsAPI.org API, you'll need to sign up for an API key.
- Visit NewsAPI.org and create an account.
- After signing up and logging in, you'll receive an API key.
- In the js/script.js file, locate the apiKey variable and replace
YOUR_API_KEY
with your actual API key.
const apiKey = 'YOUR_API_KEY';
- open
index.html
and app will fetch news articles.
Contributions are welcome! If you have ideas for adding features or enhancing the user interface, feel free to fork this repository, make your changes, and submit a pull request.