reddit

module
v0.0.0-...-0f02baf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2024 License: MIT

README

Reddit Sample Application

This application uses provided credentials to interact with Reddit's free API. It intends to honor rate limiting restrictions and simply prints a summary of what it collects to stdout.

Configuration

This application has several required and optional parameters that can be injected when the program is started.

To get started, duplicate .env_sample as .env and set the clientID, secret, username and password parameters. If you prefer, you can override the parameters in the .env using environment variables.

# Run using an .env you created based off of .env_sample
make run
  
# Run using environment variables to override .env
REDDIT_CLIENT_ID=123 \
  go run cmd/reddit/main.go

Makefile

See make help.

Requirements

See requirements.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL