Gator is a small command-line RSS feed aggregator that allows different users to follow feeds.
To run gator you need to set up the go toolchain a postgresql database and the goose tool. You can check how to install go and postresql here and here, respectively
Gator needs config file in your user folder with the following (prettyfied) format:
{
"db_url": "connection_string_goes_here",
"current_user_name": "username_goes_here"
}When filled with correct information, it should look something like this:
{"db_url":"postgres://giapoldo:@localhost:5432/gator?sslmode=disable","current_user_name":"Giapoldo"}Save it in your home folder as .gatorconfig.json (the initial dot is necessary)
- Install goose by running `go install github.com/pressly/goose/v3/cmd/goose@latest
Install Gator by running `go install github.com/giapoldo/blog-aggregator``
you can run the following commands:
gator register <username>gator login <username>
gator addFeed "<feed name>" "<feed url>"gator follow "<feed url>gator following
gator browse [optional limit]
gator reset