Categorygithub.com/trantuvan/bootdev-gator
modulepackage
0.0.0-20241118145830-4368015a9380
Repository: https://github.com/trantuvan/bootdev-gator.git
Documentation: pkg.go.dev

# README

bootdev-gator

RSS feed aggreGator 🐊. It's a CLI tool that allows users to:

  • Add RSS feeds from across the internet to be collected
  • Store the collected posts in a PostgreSQL database
  • Follow and unfollow RSS feeds that other users have added
  • View summaries of the aggregated posts in the terminal, with a link to the full post

RSS feeds are a way for websites to publish updates to their content. You can use this project to keep up with your favorite blogs, news sites, podcasts, and more!

Learning Goals

  • Learn how to integrate a Go application with a PostgreSQL database
  • Practice using your SQL skills to query and migrate a database (using sqlc and goose, two lightweight tools for typesafe SQL in Go)
  • Learn how to write a long-running service that continuously fetches new posts from RSS feeds and stores them in the database

Installation

  • The aggreGator 🐊 requires Golang and Postgres as dependencies.
  • .gatorconfig.json will be needed as config file. Create this in home director with the structure
{
  "db_url": "connectionString",
  "current_user_name": "userName"
}
  • To install the aggreGator 🐊 runs. After this bootdev-gator appears as a command in the shell.
go install

Some commands to run:

  • bootdev-gator register <user_name>
  • bootdev-gator addfeed <feed_name> <feed_url>
  • bootdev-gator agg <duration_per_fetch>
  • bootdev-gator browse <take> <skip>

# Variables

No description provided by the author