Categorygithub.com/nguyenmq/ytbox-go
module
0.0.0-20221222094714-23f444a34c48
Repository: https://github.com/nguyenmq/ytbox-go.git
Documentation: pkg.go.dev

# README

Overview

Acts like a virtual jukebox where users can submit YouTube links to a web frontend and a player application will then play the songs in the playlist.

Setup

Install Go. Set up your workspace and GOPATH.

Use go get -d ./... from the root of the repo to grab all dependencies

Install protobuf and the Go plugin. Build the .proto files:

go get -u github.com/golang/protobuf/protoc-gen-go
go install github.com/golang/protobuf/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
make proto

Install yt-dlp and mpv.

Build

The cmd sub-directory contains several binaries that can be built using go build or go install.

See Makefile for build targets.

Frontend set up

The frontend requires hash and block keys for the secure cookies. These can be generated using:

make gen-creds

Examples

Might still need to build the backend with sqlite3 explicitly defined.

go build --tags "libsqlite3 linux" -v -o bin/backend ./cmd/ytb-be

# Packages

No description provided by the author