A command-line RSS feed aggregator built in Go. Follow your favorite blogs and browse their latest posts directly from the terminal.
- Go (1.21 or later)
- PostgreSQL
go install github.com/your-username/Go-Blog-Aggregator@latest
Database Setup
Create a PostgreSQL database for the application:
CREATE DATABASE gator;
Then run the migrations to set up the schema.Go-Blog-Aggregator reads from a config file located at ~/.gatorconfig.json. Create it with the following structure:
{ "db_url": "postgres://username:password@localhost:5432/gator?sslmode=disable", "current_user_name": "" }
Replace username and password with your PostgreSQL credentials.
Register and login
Go-Blog-Aggregator register <username>
Go-Blog-Aggregator login <username>Add and follow feeds
Go-Blog-Aggregator addfeed "Boot.dev Blog" https://blog.boot.dev/index.xmlGo-Blog-Aggregator follow https://blog.boot.dev/index.xmlGo-Blog-Aggregator followingGo-Blog-Aggregator unfollow https://blog.boot.dev/index.xml- Start the aggregator (fetches feeds on an interval)
Go-Blog-Aggregator agg 30sGo-Blog-Aggregator browseGo-Blog-Aggregator browse 10