A modern news feed application built with React that displays the latest headlines using the NEWSDATA.IO API. Users can browse top news, search for specific topics, and filter articles by category. The app also handles loading and error states gracefully.
Live Demo: https://news-today-eta.vercel.app/
GitHub Repository: https://github.com/Anikhe00/NewsToday
- Fetches and displays the latest headlines using the DATANEWS.IO API
- Search functionality to find articles by keyword
- Category filter for news topics (e.g., Technology, Sports, Health)
- Loading and error states for improved UX
- Responsive design for mobile and desktop
- Frontend: React, React Router, React Query, TypeScript
- Styling: Tailwind CSS
- Icons: React Icons
- Deployment: Vercel
- Node.js (v14 or above)
- npm or yarn
- A DATANEWS.IO API key (get it from https://newsdata.io/)
- Clone the repository:
git clone https://github.com/Anikhe00/NewsToday.git- Navigate to the project directory:
cd NewsToday- Install dependencies
npm install
# or
yarn install- Create a .env file in the root directory and add your API Key:
VIEW_API_KEY=YOUR_API_KEY- Start the development server:
npm start
# or
yarn start- Fetch latest news:
https://newsdata.io/api/1/latest?apikey=YOUR_API_KEY&language=en&removeduplicate=1- Search for articles:
https://newsdata.io/api/1/latest?apikey=YOUR_API_KEY&q=searchQuery&language=en&removeduplicate=1- Filter by category:
https://newsdata.io/api/1/latest?apikey=YOUR_API_KEY&language=en&category=categoryQuery&removeduplicate=1NewsToday/ ├─ public/ ├─ src/ │ ├─ components/ │ ├─ pages/ │ ├─ api/ │ ├─ assets/ │ ├─ App.jsx │ └─ index.jsx ├─ .env ├─ package.json └─ README.md
This project is deployed on Vercel: https://news-today-eta.vercel.app/
Shakirat Akanji
- GitHub: @Anikhe00
- LinkedIn: Shakirat Akanji