gator

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 20 Imported by: 0

README

Gator Go Report Card

Gator is a command line RSS Feed Aggregator

A one-stop shop for managing your rss feeds with an automatic feed aggregation to keep you up to date!

Features include:

  • Automatic rss feed updating
  • Create RSS feeds for individual users
  • Follow RSS feeds others added
  • Automatic feed following upon adding a feed
  • Database managed feeds

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 prior to saving)

{
  "db_url": "connection_string_goes_here",    // replace "connection_string_goes_here" with your postgres db string: "postgres://username:password@localhost:5432/gator"
  "current_user_name": "username_goes_here"   // replace "username_goes_here" with a "username": "fred"
}

Install Gator

There are a few routes you can go but a couple include:

Clone the repo and run go install in the project directory
git clone https://github.com/Londrin/gator.git
cd gator
go install
After installing Go above, use go install
go install github.com/Londrin/gator@latest
Download the release

You can find the latest download of gator in releases

Operating Gator

gator `command` [args...]

Commands

  • register user
    • Registers a new user
gator register fred
  • login user
    • Logs in as a registered user
gator login george
  • addfeed title url
    • Adds & follows a feed
gator addfeed hackernews https://hnrss.org/newest 
  • users
    • Displays all users
gator users
  • feeds
    • Displays all feeds
gator feeds
  • follow feedUrl
    • Follows an existing feed
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
  • agg timestring
    • Aggregates posts every given duration
      • Valid time units are "s" (seconds), "m" (minutes), "h" (hours)
gator agg 1h
  • browse postsCount
    • Displays the latest postCount posts saved from your feeds, in descending order.
gator browse 5
  • reset
    • Clears all data (user, feed, follow and posts)
gator reset

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL