Skip to content

formatkaka/youtube-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building Youtube clone

Instructions to run

git clone https://github.com/formatkaka/youtube-clone/

Run with docker

// Build
docker build -t yt-db-1 -f Dockerfile.db . 
docker build -t yt-sv-1 -f Dockerfile.server .
docker build -t yt-cl-1 -f Dockerfile.client .  

// Run
docker run -d -p 5431:5432 yt-db-1
docker run -d -p 8080:8080 yt-sv-1
docker run -d -p 5173:5173 yt-cl-2

Run on system directly

Set up DB

Install psql locally
Create db
    name - youtube
    user - postgres
    password - postgres
Run create.sql -> add-data.sql 

Server Setup

Install Go 
cd server/
go mod download
go run main.go

Client Setup

Install node v16 (use nvm)
cd client/
npm i
npm run dev -- --open

Hosting

Hosting Diagram

Project Development

  1. Home Page
  2. Video Watch Page
  3. Studio Page to upload videos
  4. Search Page
  5. Channel Page

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published