Clone repository
Run go build from project root directory
Add go-gator to your path
Run go install github.com/WagnerJust/go-gator@latest
Post-Installation Instructions
Create a .gatorconfig.json file in your HOME DIRECTORY
Create an empty postgres database. You may use any port and any database name.
Fill the .gatorconfig.json with contents matching this template:
{
"db_url" : " postgres://justin@localhost:5432/gogator?sslmode=disable" ,
}
Register a user with the command go-gator register <username>
login <username> - Login as an existing user
print - Print the current configuration
register <username> - Register a new user
reset - Reset the database
users - Get all users
addfeed <name> <url> - Add a new feed (requires login)
feeds - Get all feeds
follow <feed_url> - Follow a feed (requires login)
following - Get feeds you are following (requires login)
unfollow <feed_url> - Unfollow a feed (requires login)
agg <time_between_reqs> - Scrape feeds continuously
aggone - Scrape feeds once
browse [limit] - Browse posts from followed feeds (requires login)