Skip to content

peteclark3/goreddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoReddit - AI Fun with Reddit!

A real-time Reddit post collector and analyzer using Go, Kafka, and PostgreSQL.

Prerequisites

  • Go 1.21+
  • Docker and Docker Compose
  • Node.js & npm
  • Reddit API credentials

Setup

  1. Get Reddit API credentials from https://www.reddit.com/prefs/apps

    • Create a new script app
    • Note down client ID and secret
  2. Configure the application:

    cp config/config.example.yaml config/config.yaml

    Update config.yaml with your Reddit credentials

  3. Install Go dependencies:

    go mod download
    go mod tidy
  4. Install frontend dependencies:

    cd frontend
    npm install
    cd ..

Running

  1. Start infrastructure:

    docker-compose up -d
  2. Start the services (in separate terminals):

    # Start producer
    go run cmd/producer/main.go
    
    # Start consumer
    go run cmd/consumer/main.go
    
    # Start API
    go run cmd/api/main.go
    
    # Start frontend (in frontend directory)
    cd frontend
    npm run dev
  3. Visit http://localhost:5173 in your browser

Shutdown

docker-compose down

To completely reset (including volumes):

docker-compose down -v

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors