Skip to content

A responsive and category-based news web app built with React and GNews API. Browse top headlines in real-time across Business, Sports, Technology, and more. Hosted on Netlify with clean UI and modular React components.

Notifications You must be signed in to change notification settings

05-Jagritii/NewsApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsGrid - Top Headlines News App

NewsGrid is a fully responsive, single-page React application that delivers the latest headlines across various categories using the GNews API. Built with modern React practices and styled with a clean dark theme, NewsGrid ensures users stay updated with world events, business, technology, health, science, sports, and entertainment, all from one intuitive interface.


Live Demo

🚀 Live Link: https://1dailynewsapp1.netlify.app/


Screenshot


Tech Stack

Tech Usage
React Core UI library
React Router For client-side routing
GNews API Fetching real-time news data
CSS Custom dark theme styling
Netlify Hosting and optional serverless backend
dotenv Managing environment variables

Features

  • Browse headlines by category (e.g., Business, Entertainment, Sports)
  • Displays article title, image, publication time
  • Easy-to-navigate user interface
  • Category-based routing using React Router
  • Dynamic data fetching with real-time updates
  • Responsive design for mobile & desktop
  • Ready for Netlify deployment

Project Structure

newsgrid/
├── netlify/
│ └── functions/
│ └── news.js
├── public/
│ ├── index.html 
│ ├── favicon.ico 
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
├── src/
│ ├── components/
│ │ ├── Navbar.js 
│ │ └── News.js 
│ ├── NewsItem.js
│ ├── App.js 
│ ├── App.css 
│ ├── index.js 
│ └── index.css 
├── .gitignore
├── netlify.toml 
├── package.json
└── README.md

Local Development

1. Clone the Repository

git clone https://github.com/05-Jagritii/NewsApp.git
cd NewsApp

2. Install Dependencies

npm install

3. Get Your NewsAPI Key

Visit https://gnews.io/
Sign up and copy your API key

4. Create .env File

REACT_APP_NEWS_API=your_api_key_here

Make sure .env is included in .gitignore.

5. Start the Dev Server

npm run start

App runs on http://localhost:3000

Author

Jagriti Kanwar
Mail : kanwarjagriti21@gmail.com
LinkedIn : Jagriti Kanwar

About

A responsive and category-based news web app built with React and GNews API. Browse top headlines in real-time across Business, Sports, Technology, and more. Hosted on Netlify with clean UI and modular React components.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published