A modern, responsive news application with beautiful glassmorphism design and real-time news from multiple categories.
- 🌍 Real-time News - Latest articles from NewsAPI
- 🎨 Glassmorphism UI - Modern glass-effect design
- 🌙 Light/Dark Mode - Toggle between themes
- 📚 Bookmark System - Save articles for later
- 🔍 Search & Filter - Find specific news
- 📱 Responsive Design - Works on all devices
- ⚡ Fast Performance - Cached articles & optimized loading
- Node.js 18+
- NewsAPI key (free at newsapi.org)
-
Clone the repository
git clone https://github.com/yourusername/news-flow.git cd news-flow -
Install dependencies
npm install
-
Set up environment variables
cp .env.example .env # Add your NewsAPI key to .env file NEWS_API_KEY=your_api_key_here -
Start the application
npm start
-
Open your browser
http://localhost:3001
- Technology - Latest tech news and innovations
- Sports - Sports updates and scores
- Business - Market news and finance
- Entertainment - Movies, music, and celebrity news
- Politics - Political news and updates
- India - India-specific news and events
- Backend: Node.js, Express.js
- Database: SQLite
- Frontend: Vanilla JavaScript, HTML5, CSS3
- API: NewsAPI
- Design: Glassmorphism, CSS Grid, Flexbox
Beautiful gradient background with glass-effect cards
Elegant dark theme with subtle glass elements
NEWS_API_KEY=your_newsapi_key
PORT=3001
NODE_ENV=development- Type: SQLite
- File:
news_app.db - Auto-created: On first run
GET /api/news?category=technology- Get news by categoryGET /api/news/search?q=query- Search newsPOST /api/bookmarks- Add bookmarkGET /api/bookmarks- Get user bookmarksDELETE /api/bookmarks/:id- Remove bookmark
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- NewsAPI for providing news data
- Poppins Font for typography
- Glassmorphism design inspiration
If you have any questions or issues, please open an issue on GitHub.
⭐ Star this repository if you found it helpful!