Skip to content

kasteion/gator

Repository files navigation

gator

A Blog Aggregator in Go

Prerequisites

You have to install Postgress and Go to run gator.

Install

To install gator run:

go install

Config

To configure gator you need to:

  1. Create file in ~/.gatorconfig.json
  2. Edit ~/.gatorconfig.json
{
  "db_url": "postgres://postgres:P@ssw0rd!@localhost:5432/gator?sslmode=disable",
  "current_user_name": ""
}
  1. Save ~/.gatorconfig.json

Usage

You can:

gator run register your_username # create you user
go run users # list users
go run login other_username # login
go run addfeed "Hacker News RSS" "https://hnrss.org/newest" # Add a new feed
go run follow "https://hnrss.org/newest" # Follow a registered feed
go run following # list followed feeds
go run unfollow "https://hnrss.org/newest" # Unfollow a feed
go run agg 1m # pull posts from feed every minute
go run browse 5 # list 5 posts - the limit (5) is optional default limit is 2

About

A Blog Aggregator in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages