DailyTimes is a React-based web application that displays the latest news articles from various categories. The application fetches news data from the NewsAPI and allows users to filter news by categories such as Technology, Business, Health, Sports, and Entertainment.
- Category Filtering: Users can filter news articles by selecting different categories from the navigation bar.
- Responsive Design: The application is designed to be responsive and works well on both desktop and mobile devices.
- Dynamic Content: News articles are dynamically fetched and displayed based on the selected category.
- Clone the repository:
https://github.com/collins-kimotho/DailyTimes.git
cd DailyTimes
- Install dependencies:
npm install
- Set up environment variables*: create a .env file in root directory and add your NewsAPI key:
VITE_API_KEY = your_news_api_key
- Run the development server:
npm run dev
- ** Build for production**:
npm run build
- Preview the production build
npm run preview
This project is licensed under the MIT License