Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.06 KB

README.md

File metadata and controls

69 lines (43 loc) · 1.06 KB

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