mirror of
https://github.com/TheBeastLT/torrentio-scraper.git
synced 2026-01-11 22:40:22 +00:00
2 KiB
2 KiB
Torrentio Addon - Local Development Setup
Quick Start
-
Prerequisites:
- Docker and Docker Compose
- Just command runner (optional but recommended)
-
Clone and setup:
git clone <repository-url> cd torrentio-scraper/addon cp .env.example .env # Edit .env as needed -
Start development environment:
# With just (recommended) just dev # Or with docker-compose directly docker-compose up --build -
Access the application:
- Addon: http://localhost:7000
- Metrics: http://localhost:7000/swagger-stats/ (admin/admin)
- PostgreSQL: localhost:5432 (torrentio/torrentio)
- MongoDB: localhost:27017
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