A command-line RSS feed aggregator that allows you to follow RSS feeds, browse posts, and manage your subscriptions.
- Node.js (see
.nvmrcfor required version) - PostgreSQL database
- npm or similar package manager
-
Clone the repository
-
Install dependencies:
npm install
-
Set up the database migrations:
npm run generate npm run migrate
Create a configuration file at ~/.gatorconfig.json with the following structure:
{
"db_url": "postgres://username:password@localhost:5432/database_name",
"current_user_name": "your_username"
}Note: The current_user_name will be updated automatically when you log in, but you need to provide an initial value.
Run the CLI with:
npm start <command> [args...]register <name>- Register a new user accountlogin <name>- Log in with an existing user accountusers- List all registered users
addfeed <name> <url>- Add a new RSS feed (requires login)feeds- List all available feedsfollow <url>- Follow an RSS feed (requires login)following- List feeds you're following (requires login)unfollow <url>- Unfollow an RSS feed (requires login)
agg- Fetch and aggregate new posts from all feedsbrowse [limit]- Browse recent posts from followed feeds (requires login)
reset- Reset the database (removes all data)
# Register and log in
npm start register john_doe
npm start login john_doe
# Add and follow a feed
npm start addfeed "TechCrunch" "https://techcrunch.com/feed/"
npm start follow "https://techcrunch.com/feed/"
# Fetch new posts and browse them
npm start agg
npm start browse 10
# View your subscriptions
npm start followingnpm start- Run the CLInpm run generate- Generate database migrationsnpm run migrate- Run database migrations