Skip to content

Backend code for alternative YouTube with no Ads, a YouTube clone avaliabe to Chinese users without censorship as of Feb 2024. (hosted on my home Raspberry Pi server behind Cloudflare tunnel)

License

Notifications You must be signed in to change notification settings

HackingGate/AltTube-Go

Repository files navigation

AltTube-Go

Getting Started

Common steps

Generate DB_PASSWORD and JWT_KEY in .env and .env.docker file

python3 generate_credentials.py

Remove data/ directory after generating DB_PASSWORD

rm -rf data/

Local environment

Build and run

docker compose up -d --build alttube-postgres piped piped-postgres piped-proxy
go mod download
go run main.go

Docker environment

Build and run

docker compose build
docker compose up

Build and run in background in one command

docker compose up --build -d

API Documentation

Generate

Install swag

go install github.com/swaggo/swag/cmd/swag@latest

At the root of the project, run

swag init --parseDependency --parseInternal --parseDepth 1

Access

http://localhost:8072/swagger/index.html

https://efficiency-node-alttube.hackinggate.com/swagger/index.html

Database Diagram

DB_Diagram

About

Backend code for alternative YouTube with no Ads, a YouTube clone avaliabe to Chinese users without censorship as of Feb 2024. (hosted on my home Raspberry Pi server behind Cloudflare tunnel)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages