Carbon Zero is a Rails-based news aggregation project focused on collecting and storing environmental and climate-related news articles from around the world.
🚧 Work in Progress 🚧
- Fetches top environmental news articles from multiple countries
- Uses NewsAPI for retrieving articles
- Stores articles in Supabase database
- Supports batch news retrieval across 53 countries
- News Fetching Service:
NewsFetcherService - Background Job:
NewsFetchJob - Rake Task:
news_fetch:all_countries
- Ruby (3.+)
- Rails
- NewsAPI Key
- Supabase Account
Required environment variables:
NEWS_API_KEY: NewsAPI authentication keySUPABASE_URL: Your Supabase project URLSUPABASE_API_KEY: Supabase API key
- Clone the repository
- Run
bundle install - Set up environment variables
- Run database migrations
rails news_fetch:all_countries