NewsAI is a modern, responsive news aggregation platform built with React, TypeScript, and Tailwind CSS. It provides users with a seamless experience to browse, search, and summarize news articles from various categories and sources worldwide.
-
Real-time News Updates: Access the latest news articles from trusted sources
-
Category-based Navigation: Browse news by categories including:
- Top Headlines
- Business
- Technology
- Health
- Sports
- Entertainment
- Science
-
Smart Search: Search for specific news topics with advanced filtering
-
AI-Powered Summaries: Get quick, AI-generated summaries of articles
-
Multi-language Support: Available in:
- English
- Spanish
- French
- German
- Italian
-
International Coverage: News from multiple countries including:
- United States
- United Kingdom
- India
- Canada
- Australia
-
Modern UI/UX: Beautiful, responsive design with smooth animations
-
Article Management: Save and organize your favorite articles
-
Frontend:
- React 18
- TypeScript
- Tailwind CSS
- Framer Motion
- React Router DOM
- Axios
- Lucide React Icons
-
APIs:
- NewsData.io API
- Article Extractor and Summarizer API
- Clone the repository:
git clone https://github.com/DadvaiahPavan/NewsAI
cd NewsAI
- Install dependencies:
cd project
npm install
- Create a
.env
file in the project root and add your API keys:
VITE_NEWS_API_KEY=your_newsdata_io_api_key
VITE_SUMMARY_API_KEY=your_summary_api_key
- Start the development server:
npm run dev
- Open http://localhost:5173 in your browser
The application can be configured through various environment variables:
VITE_NEWS_API_KEY
: Your NewsData.io API keyVITE_SUMMARY_API_KEY
: Your Article Summarizer API key
- Used for fetching real-time news articles
- Supports multiple languages and countries
- Provides category-based filtering
- Generates concise summaries of news articles
- Supports multiple languages
- Configurable summary length
- Responsive design that works on all devices
- Dark mode support
- Smooth animations and transitions
- Category-based color coding
- Loading states and error handling
- Modern card-based article layout
- Real-time search suggestions
- Advanced filtering options
- Support for multiple languages
- Category-specific search
The application is fully responsive and provides a seamless experience on:
- Desktop browsers
- Tablets
- Mobile devices
npm run dev
: Start development servernpm run build
: Build for productionnpm run preview
: Preview production buildnpm run lint
: Run ESLint
project/
├── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Page components
│ ├── services/ # API and other services
│ ├── types/ # TypeScript type definitions
│ ├── config/ # Configuration files
│ └── utils/ # Utility functions
├── public/ # Static assets
└── dist/ # Production build
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- NewsData.io for providing the news API
- RapidAPI for the article summarization API
- Tailwind CSS for the styling framework
- React for the frontend framework
- Vite for the build tool