Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.51 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.51 KB

YTDL-WEB

Web interface for YTDL API.

YTDL Web Application

Requirements

  • Node v18

Installation

Run command below to install application locally.

$ npm install

Configuration

Create .env file with variable referencing API's url. Example:

API_URL=http://localhost:8080

Running application locally

$ npm run devserver

App should be automatically opened on http://localhost:8080

Running application locally using Docker Compose

$ docker compose watch

App should be automatically opened on http://localhost:8080

Deploying on Fly.io

$ fly deploy --build-arg API_URL=https://link-to-ytdl-backend.api

Generating token for Github Actions

Instructions based on this documentation page from Fly.io

  1. Run the command below and copy and copy the output:
$ fly tokens create deploy -x 999999h
  1. Go to repo's Settings -> Security section -> Secrets and variables -> Actions. Click New repository secret button and paste copied output key from previous step int Secret input.

Troubleshoots

This section describes potential issues that may occur when using API.

1. Issue: Video is downloaded and playing but audio is absent when opening video in QuickTime Player.

Solution: Open video in another player (VLC Player for example). Maybe QuickTime Player doesn't support audio codec used in video.