Categorygithub.com/hackinggate/alttube-go
repositorypackage
0.1.0
Repository: https://github.com/hackinggate/alttube-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

AltTube-Go

Lint golangci-lint Build and Test CodeQL Dependabot Updates

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