Skip to content

Simatwa/y2mate-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

y2mate-clone

License Latest release release date Black

Web-interface for Youtube-Downloader-API inspired by y2mate.com

hosted-demo-short-3.mp4

Pre-requisites

Installation and Usage

  • Clone repository and enter the project directory.
git clone --recurse-submodules https://github.com/Simatwa/y2mate-clone.git
cd y2mate-clone
  • Install backend dependencies
cd backend
pip install -r requirements.txt
  • Start the backend server
python -m fastapi run app
  • On another terminal tab, start the frontend server from the root directory of the project
python -m http.server 8080 -d frontend

Then you can now access the web-interface from http://localhost:8080.

Tip

You can interact with one run now at https://y2mate-clone.vercel.app

Change the Base URL of the API to point to the one we had setup before and enjoy the service.

How to serve both API and Frontend contents from one server

  1. Navigate to the backend directory.

    cd backend
  2. Create a .env file (configuration file).

    cp configs/env/example .env
  3. Update path to frontend directory in the.env file identified by key frontend_dir

    frontend_dir = ../frontend
  4. Start the server

    python3 -m fastapi run app

Note

Purpose to checkout Youtube-Downloader-API to learn more about customizing the REST-API.

License