This is an optionally Dockerized Nodejs Express app to convert youtube urls to mp3 downloads. You can run it as a Nodejs app in an exisiing environment or build it as a Docker image.
Install forever globally
$ npm install -g forever
Install dependencies
express-ytdl $ npm install
Run
express-ytdl $ npm start
####Known Issues
- some YouTube videos trigger an error in https://github.com/fent/node-ytdl-core
- see [https://github.com/fent/node-ytdl-core/issues/24](this issue)
Based on truthbean/ffmpeg-node-docker
Start Docker on your host system
Build the image
express-ytdl $ docker build -t your-optional-dockerhub-username/your-app-name .
Run the container. The container's exposed port is 8080. The first argument of the -p|port
flag is your localhost port that you want to point to the container, in this example 49160
.
express-ytdl $ docker run -p 49160:8080 -d your-optional-dockerhub-username/your-app-name
Open http://localhost:49160 in your browser
You can zip the directory contents (excluding node_modules and logs) easily from the latest git version:
express-ytdl $ git archive --format=zip HEAD > your-app-name.zip