Skip to content

A News Aggregator project collects news articles from various sources and displays them in one place for easy reading. It helps users stay updated with the latest headlines across categories like politics, sports, tech, and entertainment.

Notifications You must be signed in to change notification settings

ShaikScripts/news-aggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Aggregator

A news aggregator project built with the MERN stack (MongoDB, Express, React, Node.js).
It fetches news articles from multiple sources using the NewsAPI.org API.
Users can explore the latest news updates from various categories and sources.
The project provides a simple and user-friendly interface for easy reading.

Prerequisites

  • Node.js and npm installed on your machine
  • A NewsAPI.org API key

Installation

  1. Navigate to the server directory and create a new file named .env.
  2. Add your NewsAPI.org API key to the .env file in the following format: API_KEY=your_news_api_key.
  3. Start the backend--
  4. cd server
  5. npm install # install dependencies for server
  6. node index.js # or: npm run dev (if package.json has a dev script)
  7. This should start your server
  8. Start the frontend--
  9. cd client
  10. npm install # install dependencies for client
  11. npm run dev # this starts Vite dev server (default: http://localhost:5173)
  12. Access the app
  13. The frontend will run on: http://localhost:5173
  14. The backend will run on: http://localhost:5000 (or whichever port is set in server/index.js).

Usage

Once the project is set up and running, you can view news articles from various sources on the client side.

Connect with me

About

A News Aggregator project collects news articles from various sources and displays them in one place for easy reading. It helps users stay updated with the latest headlines across categories like politics, sports, tech, and entertainment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published