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 Link: https://1dailynewsapp1.netlify.app/
| 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 |
- 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
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
git clone https://github.com/05-Jagritii/NewsApp.git
cd NewsAppnpm installVisit https://gnews.io/
Sign up and copy your API key
REACT_APP_NEWS_API=your_api_key_hereMake sure .env is included in .gitignore.
npm run startApp runs on http://localhost:3000
Jagriti Kanwar
Mail : kanwarjagriti21@gmail.com
LinkedIn : Jagriti Kanwar
