Skip to content

Latest commit

Β 

History

History
64 lines (48 loc) Β· 2.93 KB

README.md

File metadata and controls

64 lines (48 loc) Β· 2.93 KB

πŸ‡³πŸ‡Ώ News Aggregator - sources for Aotearoa New Zealand

This project uses PostgreSQL (rather than PocketBase) for simpler operations, reliability, and deployment.

A full-stack news aggregation platform that pulls articles from 4 Aotearoa New Zealand news sources, stores them in PostgreSQL, and displays them in a modern React interface.

ko-fi

Buy Me a Coffee

πŸš€ Quick Start

See the quickstart guide for full setup and installation instructions.

For the containerized stack, run scripts/start-compose.ps1. For Azure, follow Azure full-stack setup (GitHub Actions or scripts/deploy-azure.ps1).

πŸ“‹ Features

  • πŸ“œ 4 Active Scrapers extracting 80 articles (20 from each source)
  • ✨ RSS + HTML Parsing for reliable article extraction
  • 🚘 Auto-discovery system for easy scraper registration
  • πŸ”£ Template system for adding new sources quickly
  • πŸš… React Frontend with modern UI
  • πŸ“” ASP.NET Core Backend with REST API
  • πŸ’Ύ PostgreSQL for persistent relational storage

πŸ“° News Sources

Source Type Articles Status
Stuff NZ RSS 20+ πŸ“‚ Working
RNZ RSS 20+ πŸ“‚ Working
1News NZ RSS 20+ πŸ“‚ Working
NZ Herald HTML (Semantic) 20+ πŸ“‚ Working

🏒 Architecture

  • Frontend: React + Vite (Azure: newsagg-ui App Service + ACR)
  • Backend: ASP.NET Core 10 Web API
  • Scraper: Python 3.13+ with BeautifulSoup & feedparser
  • Database: PostgreSQL 17

πŸ“ Project Structure

newsagg/
β”œβ”€β”€ frontend/                     # React frontend
β”‚   └── src/                      # React components & styles
β”œβ”€β”€ backend/                      # .NET Web API
β”‚   └── NewsAggregator.Api/
β”‚       β”œβ”€β”€ Controllers/          # API endpoints
β”‚       β”œβ”€β”€ Models/               # Data models
β”‚       └── Services/             # Business logic
β”œβ”€β”€ scraper/                      # Python web scraper
β”‚   β”œβ”€β”€ scrapers/                 # 4 individual scrapers
β”‚   β”œβ”€β”€ scrapers/base_scraper.py  # Base template class
β”‚   β”œβ”€β”€ services/                 # API communication
β”‚   └── debug/                    # Test & debug utilities
└── docs/                         # Documentation
  β”œβ”€β”€ Quickstart.md               # Setup guide
  β”œβ”€β”€ NewsSources.md              # Add new scrapers
  └── APIDoc.md                   # API reference