Revolutionizing news consumption with AI-powered insights
Features • Tech Stack • Getting Started • Usage • API
- 📰 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
- Python 3.8+
- Node.js and npm
- News API Key
-
Clone the repository
git clone https://github.com/yourusername/News-aggregator.git cd news-aggregator
-
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
-
Set up the frontend:
cd ../frontend npm install
-
Create a
.env
file in the backend directory and add your News API key:NEWS_API_KEY=your_api_key_here
-
Start the backend server:
cd backend python app.py
-
In a new terminal, start the frontend development server:
cd frontend npm start
-
Open your browser and navigate to
http://localhost:3000
to view the application.
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.
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