The News App is a simple and user-friendly application that fetches the latest news articles from the News API and displays them on the frontend. The app provides users with an intuitive interface to browse and search news articles. It also supports filtering news based on specific categories such as sports, business, health, technology, and more.
- Fetch Latest News: Get the latest news from multiple sources around the world.
- Search Functionality: Search for specific news articles using keywords or phrases.
- Category Filtering: View news articles based on different categories like sports, business, technology, etc.
- User-friendly Interface: A clean and easy-to-use interface for a smooth user experience.
- Frontend: HTML, CSS, Bootstrap, React Js, React Router, etc
- Backend (API): News API (https://newsapi.org/)
- API Fetching: Fetch API
To run the News App locally on your machine, follow the steps below:
Clone this repository to your local machine using:
git clone https://github.com/amanyadav-work/news-app.git
Navigate to the project folder and install the necessary dependencies.
You will need a valid API key from News API.
- Go to News API and sign up for an account.
- Get your API key from the dashboard.
In the project directory, find News.jsx and add your API key
Start the development server.
- Browse News: The app will show a list of the latest news articles fetched from the API.
- Search News: Enter a keyword in the search bar to find news related to that topic.
- Filter by Categories: Choose a category from the options (e.g., sports, business) to see articles specific to that category.
Contributions are welcome! If you'd like to contribute