torrentio-scraper/addon
2025-09-17 20:50:32 -07:00
..
lib do not check health for movies as well when moch configured 2025-09-15 09:49:39 +03:00
moch reduce moch concurrency 2025-09-11 21:54:04 +03:00
static fix images urls 2025-03-08 11:21:38 +02:00
.dockerignore feat: add easy dev setup - docker-compose + just 2025-09-17 00:01:35 -07:00
.env.example feat: add easy dev setup - docker-compose + just 2025-09-17 00:01:35 -07:00
addon.js add limits exceeded error handling for PM and RD 2024-11-26 12:47:48 +02:00
create-tables.js feat: remove catalogs, add create-tables script 2025-09-17 20:50:32 -07:00
docker-compose.yml feat: add easy dev setup - docker-compose + just 2025-09-17 00:01:35 -07:00
Dockerfile bump node base image to 21 2024-01-30 08:49:58 +02:00
Dockerfile.dev feat: add easy dev setup - docker-compose + just 2025-09-17 00:01:35 -07:00
index.js bring back sw stats 2024-01-26 00:09:18 +02:00
justfile feat: add easy dev setup - docker-compose + just 2025-09-17 00:01:35 -07:00
package-lock.json reduce moch concurrency 2025-09-11 21:54:04 +03:00
package.json feat: remove catalogs, add create-tables script 2025-09-17 20:50:32 -07:00
README.dev.md update readme 2025-09-17 00:10:02 -07:00
serverless.js remove deprecated endpoint for resolve 2025-08-06 12:56:54 +03:00

Torrentio Addon - Local Development Setup

Quick Start

  1. Prerequisites:

    • Docker and Docker Compose
    • Just command runner (optional but recommended)
  2. Clone and setup:

    git clone <repository-url>
    cd torrentio-scraper/addon
    cp .env.example .env  # Edit .env as needed
    
  3. Start development environment:

    # With just (recommended)
    just dev
    
    # Or with docker-compose directly
    docker-compose up --build
    
  4. Access the application:

Development Commands

If you have just installed (you can install it with brew install just):

just                    # List all available commands
just dev               # Start development environment
just dev-detached      # Start in background
just down              # Stop services
just clean             # Stop and remove volumes
just logs              # View all logs
just logs-addon        # View addon logs only
just db-connect        # Connect to PostgreSQL
just mongo-connect     # Connect to MongoDB
just rebuild           # Rebuild and restart

Without just, use docker-compose commands directly:

docker-compose up --build              # Start development
docker-compose down                    # Stop services
docker-compose logs -f addon          # View addon logs
docker-compose exec addon bash        # Shell into addon container

Database Access

  • PostgreSQL: postgres://torrentio:torrentio@localhost:5432/torrentio
  • MongoDB: mongodb://localhost:27017/torrentio-cache

Development Notes

  • The addon container uses file watching for automatic restarts
  • Volumes are configured to persist database data
  • Environment variables are set for local development
  • Both databases include health checks for reliable startup