Gator is a guided RSS project from Boot.Dev. It allows users to manage RSS feeds, follow feeds, and browse posts using a command-line interface.
To use gator, you need:
- PostgreSQL: Ensure you have a running PostgreSQL instance.
- Go: Install Go (version 1.24.1 or later).
To install Gator, run the following command in your terminal:
go install github.com/GLobyNew/gator@latestGator requires a configuration file named .gatorconfig.json in your home directory. The file should include the following fields:
{
"db_url": "your_postgres_connection_string",
"current_user_name": "your_username"
}Replace your_postgres_connection_string with your PostgreSQL connection string and your_username with your desired username.
Run Gator with the following commands:
- Register a new user:
gator register <username>
- Login as an existing user:
gator login <username>
- List all users:
gator users
- Reset the database:
gator reset
- Add a new feed:
gator addfeed <feed_name> <feed_url>
- List all feeds:
gator feeds
- Follow a feed:
gator follow <feed_url>
- List followed feeds:
gator following
- Unfollow a feed:
gator unfollow <feed_url>
- Browse posts:
The
gator browse [limit]
limitparameter is optional and defaults to 2.
- Start feed aggregation:
Replace
gator agg <time_between_requests>
<time_between_requests>with a duration (e.g.,1mfor 1 minute).
This project is licensed under the GNU General Public License v3.0.
Don't contribute. It's guided project and I don't to expect to keep track of it.
This project is part of the Boot.Dev guided learning program.