Gator is a command-line tool for managing RSS feeds and users, written in Go. It allows users to register, login, add and follow RSS feeds, and browse content. The project interfaces with a PostgreSQL database for persistent storage of user data, feeds, and posts.
- User Management: Register, login, view, and reset users.
- RSS Feed Management: Add, follow, unfollow, and browse RSS feeds.
- Database Integration: Utilizes PostgreSQL to store and retrieve feed and user data.
- Command-line Interface: Provides an easy-to-use CLI for interacting with the application.
- Go 1.16 or later
- PostgreSQL database
- lib/pq: PostgreSQL driver for Go
- Other dependencies can be installed via Go modules.
-
Clone the repository:
git clone https://github.com/MPRaiden/gator cd gator
-
Install dependencies:
go mod tidy
-
Build the project:
go build
Gator requires a configuration file (config.json
) located in the internal/config
directory with the following structure:
{
"DBURL": "postgres://username:password@localhost:5432/database_name?sslmode=disable",
"CurrentUserName": ""
}