ytbox-go

module
v0.0.0-...-23f444a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2022 License: Apache-2.0

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

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL