This is a React-based web application that uses the News API to display daily news. The app supports multiple categories of news, such as Business, Entertainment, Health, Science, Sports, Technology, and more.
- Displays news articles from various categories.
- Allows users to filter news by category.
- Provides a search functionality to find news articles based on keywords.
- Shows the source and date of each article.
- API of NewsAPI is used.
- Dark theme is supported.
To run the app locally, follow these steps:
- Clone the repository:
- Copy code git clone https://github.com/ManobhavSachan/SamaacharApp/edit/main/README.md.
- Install the dependencies
- cd daily-news
- npm install
- Obtain an API key from News API.
- Create a .env file in the root directory of the project and add the following line with your API key: REACT_APP_NEWS_API_KEY=your-api-key-here
- Start the app: npm start
- Open http://localhost:3000 in your browser to view the app.
This project is licensed under the MIT License - see the LICENSE file for details.