{"id":26686153,"url":"https://github.com/saifiimuhammad/timesofnews","last_synced_at":"2026-04-11T19:35:58.575Z","repository":{"id":213734332,"uuid":"723725078","full_name":"saifiimuhammad/TimesOfNews","owner":"saifiimuhammad","description":"This is a React Web News Application using newsapi.","archived":false,"fork":false,"pushed_at":"2025-03-25T15:09:26.000Z","size":519,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T16:24:38.552Z","etag":null,"topics":["api","bootstrap","css","javascript","newsapi","newsapp","react","reactjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saifiimuhammad.png","metadata":{"files":{"readme":"README.md","changelog":"news-app/.gitignore","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-26T15:24:15.000Z","updated_at":"2025-03-25T15:27:09.000Z","dependencies_parsed_at":"2025-03-25T16:33:46.870Z","dependency_job_id":null,"html_url":"https://github.com/saifiimuhammad/TimesOfNews","commit_stats":null,"previous_names":["saifiimuhammad/newsdonkey"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saifiimuhammad/TimesOfNews","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FTimesOfNews","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FTimesOfNews/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FTimesOfNews/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FTimesOfNews/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saifiimuhammad","download_url":"https://codeload.github.com/saifiimuhammad/TimesOfNews/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saifiimuhammad%2FTimesOfNews/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31693272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","bootstrap","css","javascript","newsapi","newsapp","react","reactjs"],"created_at":"2025-03-26T11:17:02.169Z","updated_at":"2026-04-11T19:35:58.529Z","avatar_url":"https://github.com/saifiimuhammad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React News Web App - Times Of News\n\nA responsive news web app built with React, utilizing the NewsAPI to fetch news articles of various categories. The project includes features such as a top loading bar and infinite scroll for a seamless user experience.\n\n![new1](https://github.com/saifiimuhammad/TimesOfNews/assets/99310347/b6ab7a41-fa5c-4e58-b4dc-d65d31826c71)\n![news2](https://github.com/saifiimuhammad/TimesOfNews/assets/99310347/3c1c4b7a-137e-423a-af9b-15fbb5dfc7a2)\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Technologies](#technologies)\n- [Folder Structure](#folder-structure)\n- [License](#license)\n\n## Introduction\n\nThis React news web app fetches news data from the [NewsAPI](https://newsapi.org/) and organizes it into different categories. It started as a class-based component project and was later refactored into function-based components. The use of React hooks such as `useState` and `useEffect` provides a cleaner and more efficient code structure.\n\n## Features\n\n- **Category-based News:** Explore news articles in various categories, such as Business, Entertainment, Health, Science, Sports, and Technology.\n\n- **Top Loading Bar:** A visual indicator at the top of the page shows when new articles are being loaded.\n\n- **Infinite Scroll:** Scroll through news articles seamlessly with an infinite scroll feature, providing a smooth user experience.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/saifiimuhammad/TimesOfNews.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd news-app\n   ```\n\n3. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n1. Obtain your API key from [NewsAPI](https://newsapi.org/) and replace `YOUR_API_KEY` in the `.env` file.\n\n2. Start the development server:\n\n   ```bash\n   npm start\n   ```\n\n3. Open your browser and visit [http://localhost:3000](http://localhost:3000) to view the app.\n\n## Technologies\n\n- **React:** A JavaScript library for building user interfaces.\n- **NewsAPI:** A simple HTTP REST API for searching and retrieving live articles from all over the web.\n- **Bootstrap:** A popular front-end framework for styling and layout.\n\n## Folder Structure\n\n```\nreact-news-web-app/\n│\n├── public/\n│   └── index.html\n│\n├── src/\n│   ├── components/\n│   │   ├── Navbar\n|   |   |    ├── Navbar.js\n|   |   |    ├── style.css\n│   │   ├── NewsContainer\n|   |   |    ├── NewsContainer.js\n|   |   |    ├── NewsContainer.css\n│   │   ├── NewsItem\n|   |   |    ├── NewsItem.js\n│   │   └── Spinner\n|   |        ├── Spinner.js\n│   ├── App.js\n│   ├── index.js\n│   └── ...\n│\n├── .env.local\n├── .gitignore\n├── package.json\n└── README.md\n```\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n```\n\nMake sure to customize the placeholders like `your-username` and `YOUR_API_KEY` with your actual GitHub username and NewsAPI key, respectively. Also, include your license information in the `LICENSE` file if you choose a license for your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaifiimuhammad%2Ftimesofnews","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaifiimuhammad%2Ftimesofnews","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaifiimuhammad%2Ftimesofnews/lists"}