gator ? My favorite blog aggregator
In order to make gator work you need:
- postgresql
- go
To install on an unix system just type
go install github.com/macrespo42/Gator@latest
You'll need to have a .gatorconfig.json in your $HOME directory location like
.gatorconfig.json
Example of a valid config file:
{
"db_url":"postgres://macrespo:@localhost:5432/gator?sslmode=disable", // mandatory
"current_user_name":"kahya" // optionnal, be set with the cli
}
You can run a command with
Gator command_name arg1 arg2...
register $name_of_user
| register a new userlogin $name_of_user
| log a registered userreset
|⚠️ DEV command, reset databaseusers
| Get a list of registered usersagg $10s
| Scrape feeds from rss flux at the interval given as argumentfeeds
| Get a list of added feedsaddfeed $title $url
| add a feed to the databasefollow $feed_title
| follow feed by titleunfollow $feed_title
| unfollow feed by titlefollowing
| list of your following feedsbrowse $limit=2
| browse feeds from your following list
- Add sorting and filtering options to the browse command
- Add pagination to the browse command
- Add concurrency to the agg command so that it can fetch more frequently
- Add a search command that allows for fuzzy searching of posts
- Add bookmarking or liking posts
- Add a TUI that allows you to select a post in the terminal and view it in a more readable format (either in the terminal or open in a browser)
- Add an HTTP API (and authentication/authorization) that allows other users to interact with the service remotely
- Write a service manager that keeps the agg command running in the background and restarts it if it crashes