This is a full service REST api, and UI used for downloading audio files from youtube videos.
This repository uses yarn berry
, which means you need both npm
and yarn
downloaded locally. If you use nvm for managing your node enviornment then you will have npm
, and just need to download yarn
1.X.X. For more info refer here.
- Node.js >= v14.X.X
Note: For the following packages below, you may run sh ./backend/install.sh
. The script supports macOS, and Ubunutu. For Mac's it will use brew
, and for Ubunutu apt
.
- ffmpeg
- yt-dlp
cd backend
yarn install
export LOG_LEVEL=http
yarn build && yarn main
oryarn dev
for development mode.
cd backend
docker build . -t <your username>/restructure-yt
docker run -p 49160:8080 -d <your username>/restructure-yt
docker ps
# Get your container IDdocker logs <container id>
# Get container logscurl -i localhost:49160
docker exec -it --user=root <container_id> /bin/ash
# Running as root user
LOG_LEVEL
: The lowest priority log level to surface, defaults toinfo
. Tip: set tohttp
to see all HTTP requests.LOG_JSON
:Whether or not to have logs formatted as JSON, defaults tofalse
. Useful when usingstdout
to programmatically process log data.
cd frontend
yarn install
yarn build && yarn start