Skip to content

mohammadzyoud1/Blog-Aggregator

Repository files navigation

Blog CLI

A command-line RSS feed aggregator and browser built with TypeScript and PostgreSQL.

Setup

Clone the repo

git clone cd blog

Install dependencies

npm install

Create a PostgreSQL database Example URL:

postgres://postgres:123321@localhost:5432/gator?sslmode=disable
  1. Run migrations

npm run migrate

Commands

  • create a new user

npm run start register

  • login user

npm run start login

  • Add a feed

npm run start addfeed "Feed Name" "Feed URL"

  • Follow a feed

npm run start follow "Feed URL"

  • UnFollow a feed npm run start unfollow "Feed URL"

  • show the feeds followed by the user npm run start following

  • Browse latest posts (default limit 2)

npm run start browse

  • Browse latest posts (custom limit)

npm run start browse 5

  • Start aggregator (fetch interval)

npm run start agg 1m

Aggregator prints new posts automatically and respects duplicates. Press CTRL+C to stop.

Notes

  • Feeds are fetched continuously by the aggregator.
  • Posts are stored in PostgreSQL.
  • User must be set in config.json to use commands. .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors