Gator is an RSS feed aggregator in Go.
You need Go and PostgreSQL installed to run this application.
go install github.com/angelofallars/gator@latestTo set up the config file, create a ~/.gatorconfig.json file in the home directory with the
following content:
{
"db_url": "postgres://<USERNAME>:<PASSWORD>@localhost:5432/database?sslmode=disable"
}Replace the value in db_url with the appropriate username and password for your PostgreSQL database.
Arguments: user (string)
Register as the user, and log in as that user.
Arguments: user (string)
Log in as the user.
Arguments: N/A
List out all the users in the application.
Arguments: name (string), url (string)
Add an RSS feed and follow that feed.
Arguments: time_interval (duration)
Fetch posts from the saved feeds added by addfeed every time_interval.
Example time_interval arguments: 3s, 1m, 30m, 1h.
Arguments: N/A
List out all the feeds by all users.
Arguments: url (string)
Follow the feed with the given url.
Arguments: N/A
List out the currently-followed feeds by the logged-in user.
Arguments: url (string)
Unnfollow the feed with the given url.
Arguments: limit (int, optional)
Browse the latest posts from the user's subscribed feeds,
up to the limit, default 2 posts.
Arguments: N/A
Resets the entire database.