Skip to content

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gator 🐊

Rss Postgres Go

Foobar is a small RSS aggregator written in Go using Postgres Database.

Installation

To run the program, you need to install Postgres and Golang.

Then, to install application generally, run:

go install github.com/mashfeii/gator

Program will search for config file inside $HOME directory by .gatorconfig.json as default file name, there you should specify db_url field.

Usage

# Clear users table (other tables will be cleared as well)
gator reset

# Register user (automatically become logged in)
gator register masfheii
gator register byaka

# Login user (in order to switch them)
gator login mashfeii

# List all the users
gator users

# Add new feed to current user
gator addfeed '$name' '$URL'

# List all the feeds for all users
gator feeds

# List feeds for the current user
gator following

# Remove feed from current user
gator unfollow '$URL'

# With selected duration check the source for new posts
gator agg '$duration (5s/1m/10h)'

# Show selected number of posts from database for current user
gator browse $limit

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages