Skip to content

lulock/gator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gator 🐊

This CLI tool is simple RSS aggregator written in Go and following the Blog Aggregator project course on Boot.dev.

⚠️ There is no server beyond the database; it is intended for local use only.

Prereqs

  • Postgres
  • Go

Install

go get github.com/lulock/gator

Set up config

  • manually create a config file in your home directory ~/.gatorconfig.json
  • It should have the following format:
{ "db_url": "connection_string_goes_here",
  "current_user_name": "username_goes_here"
}
  • no need to set a current_user_name, the programme will set this.

Usage

command description
go run . reset resets database
go run . register [name] registers [name] as user and logs user in as current user
go run . addfeed [feed name] [feed url] adds [feed name] found at [feed url] to current logged in user
go run . follow [feed url] follows [feed url] for current logged in user
go run . unfollow [feed url] unfollows [feed url] for current logged in user
go run . agg [time interval] fetches RSS feed every [time interval] and saves posts
go run . browse [max number] browses fetched and saved posts from followed RSS feeds capped at [max number]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages