1.5 KiB
1.5 KiB
Getting Started
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
- Docker (optional, for containerized deployment)
- Python 3.8+ (for yt-dlp and PO Token provider)
- yt-dlp (installed via pip/pipx)
Installation
-
Clone the repository:
git clone <repository-url> cd mytube -
Install dependencies:
You can install all dependencies for the root, frontend, and backend with a single command:
npm run install:allOr manually:
npm install cd frontend && npm install cd ../backend && npm installNote: The backend installation will automatically build the
bgutil-ytdlp-pot-providerserver. However, you must ensureyt-dlpand thebgutil-ytdlp-pot-providerpython plugin are installed in your environment:# Install yt-dlp and the plugin pip install yt-dlp bgutil-ytdlp-pot-provider # OR using pipx (recommended) pipx install yt-dlp pipx inject yt-dlp bgutil-ytdlp-pot-provider
Using npm Scripts
You can use npm scripts from the root directory:
npm run dev # Start both frontend and backend in development mode
Other available scripts:
npm run start # Start both frontend and backend in production mode
npm run build # Build the frontend for production
npm run lint # Run linting for frontend
npm run lint:fix # Fix linting errors for frontend
Accessing the Application
- Frontend: http://localhost:5556
- Backend API: http://localhost:5551