Skip to content

Anik2812/News-aggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI News Aggregator Logo

AI News Aggregator

Python Version React Version

Revolutionizing news consumption with AI-powered insights

FeaturesTech StackGetting StartedUsageAPI


🌟 Features

  • 📰 AI-Driven News Aggregation: Curate top headlines using advanced algorithms
  • 🧠 Sentiment Analysis: Understand the emotional tone of articles at a glance
  • 🔥 Trending Topics: Stay ahead with AI-identified hot topics
  • 🌓 Dark Mode: Seamlessly switch between light and dark themes
  • 📱 Responsive Design: Enjoy a seamless experience across all devices

🛠 Tech Stack

Backend

Python Flask NLTK scikit-learn

Frontend

React styled-components React Router


🚀 Getting Started

Prerequisites

Installation

  1. Clone the repository

      git clone https://github.com/yourusername/News-aggregator.git
       cd news-aggregator
  2. Set up the backend:

    cd backend
    python -m venv venv
    source venv/bin/activate  # On Windows, use venv\Scripts\activate
    pip install -r requirements.txt
  1. Set up the frontend:

    cd ../frontend
    npm install
    
  2. Create a .env file in the backend directory and add your News API key:

      NEWS_API_KEY=your_api_key_here
    

Usage

  1. Start the backend server: cd backend python app.py

  2. In a new terminal, start the frontend development server: cd frontend npm start

  3. Open your browser and navigate to http://localhost:3000 to view the application.

API Endpoints

  • GET /api/articles: Fetches top news articles with sentiment analysis.
  • GET /api/trending_topics: Retrieves current trending topics.

For detailed API documentation, refer to the API Documentation file.

Frontend

The frontend is built using React and styled-components, providing a responsive and intuitive user interface. Key components include:

  • NewsFeed: Displays the latest news articles with sentiment indicators.
  • TrendingTopics: Shows current trending topics based on AI analysis.
  • ThemeToggle: Allows users to switch between light and dark modes.

For more information on the frontend architecture, check out the Frontend Documentation.


Made by Anik

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published