Plex torrent streaming through Real Debrid and 3rd party services like Overseerr, Mdblist, etc.
This repository contains the frontend for Riven. It is build with SvelteKit.
To run the frontend, you need to have the backend running. You can find the backend here
Make sure you have docker and docker-compose installed on your system.
Edit the docker-compose.yml
(make sure to replace the environment variables with your own) file to match your setup:
Important
It is very important to set the ORIGIN
and BACKEND_URL
environment variables correctly to make the frontend work properly. Read more about them here.
services:
riven-frontend:
image: ghcr.io/rivenmedia/riven-frontend:latest
container_name: riven-frontend
restart: unless-stopped
tty: true
environment:
- ORIGIN=http://localhost:3000 # No trailing slash, read more below
- BACKEND_URL=http://127.0.0.1:8080 # No trailing slash, read more below
- TZ=America/New_York
ports:
- '3000:3000'
Then run the following command:
docker-compose up -d
It will start the frontend container called riven-frontend
on port 3000
.
Make sure you have npm / pnpm / yarn installed on your system (pnpm is recommended).
Install the dependencies:
npm install # or pnpm install or yarn
Then run the following command:
npm run build # or pnpm run build or yarn build
It will build the frontend in the build
directory.
Then run the following command:
ORIGIN=http://localhost:3000 BACKEND_URL=http://127.0.0.1:8080 node build
It will start the frontend on port 3000
.
-
ORIGIN
: It's the URL you will use to access the frontend. If running behind a reverse proxy, you should set it to the URL of the reverse proxy, likehttps://riven.example.com
. If running locally, you can let it behttp://localhost:3000
or you local server IP address likehttp://192.168.1.45:3000
. -
BACKEND_URL
: The URL of the backend. Default should work in most cases. You can also replace it with container name of backend if you are using docker-compose.
We welcome contributions from the community! To ensure a smooth collaboration, please follow these guidelines:
-
Open an Issue: For major changes, start by opening an issue to discuss your proposed modifications. This helps us understand your intentions and provide feedback early in the process.
-
Pull Requests: Once your changes are ready, submit a pull request. Ensure your code adheres to our coding standards and passes all tests.
-
Frontend: We use Prettier for code formatting. Run prettier on your code before submitting.
-
Line Endings: Use CRLF line endings unless the file is a shell script or another format that requires LF line endings.
First install dependencies with npm install
(or pnpm install
or yarn
). Then create .env
with same content as .env.example
and fill in the values. Then start the development server:
Note
It is recommended to use latest LTS version of Node.js. If using pnpm
you can run pnpm env use --global lts
to switch to the latest LTS version.
npm run dev
npm run dev -- --open
Thanks goes to these wonderful people: