Skip to content

Arawat30/NewsAPI

Repository files navigation

News Aggregator

Overview

This is a news aggregator website built with React.js and TypeScript. It pulls articles from various sources and displays them in a clean, easy-to-read format.

Setup Instructions

  1. Clone the repository:
    git clone git@github.com:Arawat30/NewsAPI.git
    cd NewsAggr
    

Install dependencies: bash npm install

Run the development server: bash npm run dev

To run the project within a Docker container: bash docker load -i .\news.tar
docker run -p 3001:3001 news:dev

/src ├── /components/ │ ├── Card.tsx │ ├── Newsapp.tsx ├── App.tsx ├── App.css ├── index.css └── index.tsx

Code Structure Explanation /src/components: Contains reusable components ( Card, Newsapp) /src/styles: CSS files for styling.

API Usage Instructions This project uses the NewsAPI for fetching articles. Make sure to replace YOUR_API_KEY in newapp.tsx with your actual API key.

P.S. Tried multiple open source news API but only NewsApi was working , hence only used that.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published