Skip to content

jordojordo/daphine

Repository files navigation

Build Tests

Daphine

An api for streaming music and videos. See it in action on yokanga.xyz.

Usage

An example Vue app using this API can be found here.

Depending on your requirements you can run Daphine as a deployment in Kubernetes, a Podman or Docker container, or by simply running as a Nodejs service on your server. However, the setup for each requires a few different steps.

Kubernetes deployment using Helm

Deploy Daphine easily in your Kubernetes cluster using Helm. First, add the Helm repository:

helm repo add jordojordo https://jordojordo.github.io/helm-charts

Then, install Daphine using the Helm chart:

helm install daphine jordojordo/daphine

For more details about the installation process, including prerequisites and how to configure the Helm chart, see the Daphine Helm Chart README.

Docker container

You can use the latest release as your image to run, it only requires a few settings to run properly. A Docker Volume

docker run -d \
  --name daphine \
  -v <VOLUME_NAME>:/assets \
  ghcr.io/jordojordo/daphine:latest

Nodejs service

The data you wish to stream will need to be accessible to the application and the paths will need to match within ./api/music.js and ./api/stream.js. For ease of use you can place the data in a directory titled "assets" within the root of the app.

Add the url of your frontend to the CORS_OPT.origin

npm install
npm run build
npm start