This project is a React-based news application built using React. It allows users to browse and search for news articles from various sources.
- View a list of latest news articles
- Filter news articles by category
- Search for specific news articles
- Click on an article to view its details
-
Clone the repository:
-
Navigate to the project directory:
-
Install dependencies:
-
Obtain an API key from a news service provider (e.g., NewsAPI).
-
Add and replace
<YOUR_API_KEY>
with your actual API key: -
Open your web browser and navigate to
http://localhost:5173
.
src
: Contains the main source code filescomponents
: Reusable React componentspages
: Top-level pages of the applicationservices
: API service for fetching news datapublic
: Public assets and index.html
- React: JavaScript library for building user interfaces
- React Router: Routing library for React applications
- Axios: HTTP client for making API requests y