🐊 GATOR
A blog aggreGATOR
Requirements
Go Installation
Install Go.
Postgres Installation
Install Postgres.
Config file
Add ~/.gatorconfig.json
to your home directory and populate with db config settings (remove comments before saving):
{
"db_url": "connection_string_goes_here", // connection string for postgres
"current_user_name": "username_goes_here" // gator will save the current user name
}
Install Gator Executable
After cloning the repo, go to the project root and run
go install
Run
🐊 is available in any directory!
gator `command` [args...]
Commands
gator register homer
- login
user
- Logs in as a registered user
gator login bart
gator addfeed https://hnrss.org/newest hackernews
- agg
timestring
- Aggregates posts every given duration
- Valid time units are
"ns", "us" (or "µs"), "ms", "s", "m", "h"
gator agg 12h
- browse
postsCount
- Displays the latest
postCount
posts saved from your feeds, in descending order.
gator browse 5
gator follow https://hnrss.org/newest
- unfollow
feedUrl
- Unfollows an existing feed
gator unfollow https://hnrss.org/newest
- following
- Displays all feeds followed by current user
gator following
gator users
gator feeds
- reset
- Clears all data (user, feed, follow and posts)
gator reset