This is a simple news application built with React that allows users to search for news articles using the NewsAPI. Users can enter a search query to fetch news articles related to the query. The application displays the news articles in a responsive grid layout.
- Search for news articles using keywords
- View a list of news articles with titles, descriptions, images, and sources
- Click on a news article to view the full article on the source's website
- React: Frontend library for building user interfaces
- NewsAPI: API for fetching news articles
- CSS: Styling the application
- Axios: HTTP client for making API requests
To run the application locally, follow these steps:
- Clone the repository:
git clone https://github.com/ArnaudBand/news_app.git
- Navigate to the project directory:
cd news_app
- Install dependencies:
npm install
- Create a
.env
file in the root directory and add your NewsAPI key:REACT_APP_API_KEY=your-api-key
- Start the development server:
npm start
- Open http://localhost:3000 in your browser to view the application
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or create a pull request.