Instructions to run
git clone https://github.com/formatkaka/youtube-clone/
// 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
Install psql locally
Create db
name - youtube
user - postgres
password - postgres
Run create.sql -> add-data.sql
Install Go
cd server/
go mod download
go run main.go
Install node v16 (use nvm)
cd client/
npm i
npm run dev -- --open