NewsMonkey – Daily News Aggregator
A real-time news aggregation application fetching top headlines worldwide across diverse categories using NewsAPI.
Frontend Developer · 1 week · Media / API Integration · Solo Project
NewsMonkey is a React-based news application designed to provide users with the latest headlines in real-time. Built using React Class Components, it fetches live data from NewsAPI and categorizes it into business, entertainment, health, science, sports, and technology. The application features a responsive layout powered by Tailwind CSS, custom pagination logic, loading states with spinners, and fallback image handling for a seamless user experience.
Technology: React.js (Class Components), Tailwind CSS, NewsAPI, JavaScript (ES6+), Fetch API, HTML5/CSS3
Live demo: https://ameyg11.github.io/news-monkey/
Source code: https://github.com/ameyg11/news-monkey/
Features
- Real-time news fetching via NewsAPI
- Categorized feeds (Business, Tech, Sports, etc.)
- Pagination system (Next/Previous)
- Responsive Navbar with Hamburger menu
- Dark Mode support (zinc-900 themes)
- Custom Loading Spinner component
- Fallback image handling for broken links
- Grid layout adapting to mobile and desktop
- Article truncation and 'Read More' linking
Engineering challenges
- Managing component state and lifecycle methods (componentDidMount) in Class Components.
- Implementing manual pagination logic to handle API page limits.
- Handling asynchronous data fetching and ensuring the UI doesn't break on empty responses.
- Creating a responsive grid layout using Tailwind CSS utility classes.
- Sanitizing API data (handling null titles, descriptions, or images).
Contribution and what I learned
- Mastered React Component Lifecycle methods (componentDidMount, render).
- Learned how to pass props and manage state in Class-based components.
- Understood asynchronous JavaScript (async/await) for API integration.
- Gained proficiency in Tailwind CSS for rapid UI styling.
- Implemented conditional rendering for loading states and error handling.