A simpe and lightweight YouTube video downloader built with Angular and PHP.
Try it HERE
Clone this repository
git clone https://github.com/xamantra/xam-youtube-downloader.git
nodejs already includes npm.
- Angular CLI
install via npm
npm install @angular/cli
- xam-youtube-downloader-api. This is written in PHP.
You need to host this api by using a webserver.
You can use WAMP for Windows, LAMP for Linux, or MAMP for macOS. But I recommend using XAMPP for all platforms or you can also host it directly to a web hosting site. Clone this api:
git clone https://github.com/xamantra/xam-youtube-downloader-api.git
You can try the DEMO for this api by:
https://xamantra.000webhostapp.com/ytd-api/?xam_url=YOUTUBE_VIDEO_URL_HERE
Sample : https://xamantra.000webhostapp.com/ytd-api/?xam_url=https://www.youtube.com/watch?v=w3jLJU7DT5E
Read this for more info.
Once you setup your xam-youtube-downloader-api on a server, your can now setup the xam-youtube-downloader angular project.
- Open your terminal or any command line tools.
- Go to xam-youtube-downloader folder.
cd xam-youtube-downloader
- Run npm install to install all the dependencies.
npm install
- You need to replace this code in 'youtube-response.service.ts' with the appropriate api link that you have setup.
The app will not work properly if you didn't setup the php api correctly!
- Run ng serve to start the app in your browser.
ng serve --open
The app is now ready for your own modifications.