RSS feed aggregator CLI.
-
Create a PostgreSQL database
-
Create a
.envfile in the project root:DB_URL=postgres://user:password@localhost:5432/dbname -
Create
~/.gatorconfig.json:{ "db_url": "postgres://user:password@localhost:5432/dbname?sslmode=disable" } -
Run migrations:
make migrate
-
Build:
make build
./gator register <username> # create account and log in
./gator login <username> # switch user
./gator addfeed <name> <url> # add and follow a feed
./gator agg <interval> # start aggregating (e.g. 30s, 1m)
./gator browse [limit] # view latest posts (default: 2)
./gator feeds # list all feeds
./gator follow <url> # follow a feed
./gator unfollow <url> # unfollow a feed
./gator following # list followed feeds
./gator users # list all users