Thanks to visit codestin.com
Credit goes to github.com

Skip to content

giapoldo/blog-aggregator

Repository files navigation

Aggre-Gator

Description

Gator is a small command-line RSS feed aggregator that allows different users to follow feeds.

Setup

To run gator you need to set up the go toolchain a postgresql database and the goose tool. You can check how to install go and postresql here and here, respectively

Config

Gator needs config file in your user folder with the following (prettyfied) format:

{
  "db_url": "connection_string_goes_here",
  "current_user_name": "username_goes_here"
}

When filled with correct information, it should look something like this:

{"db_url":"postgres://giapoldo:@localhost:5432/gator?sslmode=disable","current_user_name":"Giapoldo"}

Save it in your home folder as .gatorconfig.json (the initial dot is necessary)

Install

  1. Install goose by running `go install github.com/pressly/goose/v3/cmd/goose@latest

Install Gator by running `go install github.com/giapoldo/blog-aggregator``

Usage

you can run the following commands:

To manage users

  1. gator register <username>
  2. gator login <username>

To manage RSS feeds

  1. gator addFeed "<feed name>" "<feed url>"
  2. gator follow "<feed url>
  3. gator following

To browse recent posts

  1. gator browse [optional limit]

To reset the RSS feed database

  1. gator reset

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages