- Postgres
- Golang
- Clone repository
- Run
go buildfrom project root directory - Add
go-gatorto your path
- Run
go install github.com/WagnerJust/go-gator@latest
- Create a
.gatorconfig.jsonfile in your HOME DIRECTORY - Create an empty postgres database. You may use any port and any database name.
- Fill the
.gatorconfig.jsonwith 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 userprint- Print the current configurationregister <username>- Register a new userreset- Reset the databaseusers- Get all usersaddfeed <name> <url>- Add a new feed (requires login)feeds- Get all feedsfollow <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 continuouslyaggone- Scrape feeds oncebrowse [limit]- Browse posts from followed feeds (requires login)