Skip to content
LauloquePublic

About

A barebone blog aggregator in Go

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gator

A barebone blog aggregator in Go

Made in the context of the Boot.dev class: Build a Blog Aggregator in Go

image

How to use

  1. Make sure you have Postgresql and Go installed.

  2. Install gatorby executing go install github.com/Lauloque/gator@latest

  3. Make sure you have a running postgresql server, then setup a config file, .gatorconfig.json in your home directory. That file should contain the url to your postgresql server. Example:

{ "db_url": "postgres://username:@localhost:5432/database?sslmode=disable" }

Commands

Global usage: gator <command> [arguments...]

  • register [name] - Register a new user
  • login [name] - Log in as an existing user
  • users - List all users

  • addfeed [feed name] [feed url] - Add a new feed to the database
  • feeds - Display feeds that have been added to gator
  • agg [duration] - Aggregate added feeds at the given interval duration eg: '1s', '1m', '1h' etc

  • follow [feed url] - Follow a feed already in the database
  • follows - Display feeds that the current user is following
  • unfollow [feed url] - Stop following a feed
  • browse [number] - Display [number] most recent posts from followed feeds

  • reset - Delete all users from database

About

A barebone blog aggregator in Go

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages