jellyfin-vue/README.md

104 lines
3.7 KiB
Markdown
Raw Normal View History

2020-09-02 18:34:50 +00:00
<h1 align="center">Jellyfin Vue</h1>
<h3 align="center">Part of the <a href="https://jellyfin.org">Jellyfin Project</a></h3>
---
<p align="center">
<img alt="Logo Banner" src="https://raw.githubusercontent.com/jellyfin/jellyfin-ux/master/branding/SVG/banner-logo-solid.svg?sanitize=true"/>
<br/>
<br/>
<a href="https://github.com/jellyfin/jellyfin-vue">
<img alt="GPL 3.0 License" src="https://img.shields.io/github/license/jellyfin/jellyfin-vue.svg"/>
</a>
<a href="https://github.com/jellyfin/jellyfin-vue/releases">
<img alt="Current Release" src="https://img.shields.io/github/release/jellyfin/jellyfin-vue.svg"/>
</a>
<a href="http://commitizen.github.io/cz-cli/">
<img alt="Commitizen friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" />
</a>
2021-01-08 12:36:33 +00:00
<a href="https://codecov.io/gh/jellyfin/jellyfin-vue">
<img src="https://codecov.io/gh/jellyfin/jellyfin-vue/branch/master/graph/badge.svg?token=6SPE6CJJD8"/>
</a>
2020-09-02 18:34:50 +00:00
<br/>
<a href="https://opencollective.com/jellyfin">
<img alt="Donate" src="https://img.shields.io/opencollective/all/jellyfin.svg?label=backers"/>
</a>
<a href="https://features.jellyfin.org">
<img alt="Feature Requests" src="https://img.shields.io/badge/fider-vote%20on%20features-success.svg"/>
</a>
<a href="https://forum.jellyfin.org">
<img alt="Discuss on our Forum" src="https://img.shields.io/discourse/https/forum.jellyfin.org/users.svg"/>
</a>
<a href="https://matrix.to/#/+jellyfin:matrix.org">
<img alt="Chat on Matrix" src="https://img.shields.io/matrix/jellyfin:matrix.org.svg?logo=matrix"/>
</a>
<a href="https://www.reddit.com/r/jellyfin">
<img alt="Join our Subreddit" src="https://img.shields.io/badge/reddit-r%2Fjellyfin-%23FF5700.svg"/>
</a>
</p>
This is an experimental web client for Jellyfin based on Vue.js. We welcome all contributions and pull requests! If you have a larger feature in mind please open an issue so we can discuss the implementation before you start.
## Requirements
This project uses [Yarn](https://yarnpkg.com/getting-started/install) as a package manager.
## Contributing
We provide a [devcontainer](https://code.visualstudio.com/docs/remote/containers) to help you setup your environment.
The project also contains recommended extensions for [Visual Studio Code](https://code.visualstudio.com/), which will help you with syntax style and development.
Finally, we provide useful pre-commit hooks via [Husky](https://typicode.github.io/husky/#/), as well as [Comitizen](https://github.com/commitizen/cz-cli) integration, in order to help you respect the style and naming conventions used throughout this project.
For more information about how to contribute to this project, see [CONTRIBUTING.md](https://github.com/jellyfin/jellyfin-vue/blob/master/CONTRIBUTING.md)
2020-11-27 21:34:53 +00:00
## Pre-requirements
```
Jellyfin >=10.7.0
```
2020-09-02 18:34:50 +00:00
## Build Process
```bash
# install dependencies
$ yarn install
2021-01-26 14:36:15 +00:00
# server with hot reload at localhost:3000
2020-09-02 18:34:50 +00:00
$ yarn dev
2021-01-26 14:36:15 +00:00
# serve with hot reload in static mode at localhost:3000
$ yarn dev:static
2021-01-19 01:57:46 +00:00
2021-01-26 14:36:15 +00:00
# build for production and launch server
2020-09-02 18:34:50 +00:00
$ yarn build
2021-01-26 14:36:15 +00:00
$ yarn start
2021-01-19 01:57:46 +00:00
2021-01-26 14:36:15 +00:00
# build for production in static mode
# you will need a web server to host the client
$ yarn build:static
2020-09-02 18:34:50 +00:00
```
2021-01-24 15:35:54 +00:00
## Running standalone
When using the SSR version of the client, you can run the client in standalone mode in order to save space.
```bash
# install dependencies
$ yarn install
# build for production in standalone mode, with server-side rendering
2021-01-26 14:36:15 +00:00
$ yarn build --standalone
2021-01-24 15:35:54 +00:00
# move the server and required files to a dedicated directory
$ mkdir -p /opt/jellyfin-vue
$ cp .nuxt .docker/nuxt.config.js .docker/package.json /opt/jellyfin-vue
# install the required dependency and start the client
$ cd /opt/jellyfin-vue
$ yarn install
$ yarn start
```