jellyfin-vue/README.md

120 lines
4.4 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="https://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://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.
# Build Process
## Dependencies
2021-03-01 20:42:06 +00:00
- [Node.js LTS](https://nodejs.org/en/download) `>=16.13.0 <17.0.0`
- npm `>=8.1.0` (included in Node.js)
- Jellyfin Server `>=10.7.0`
2021-03-01 20:42:06 +00:00
## Getting Started
1. Clone or download this repository.
```bash
git clone https://github.com/jellyfin/jellyfin-vue.git
cd jellyfin-vue
```
2. Install the build dependencies in the project directory.
```bash
npm install
```
3. Run the web client with Nuxt as a server for local development.
```bash
npm start
```
2020-09-02 18:34:50 +00:00
2021-12-02 21:16:59 +00:00
The client will be available at http://127.0.0.1:3000 by default.
### Build for production
2020-09-02 18:34:50 +00:00
When you're ready to deploy the client, you must build the client specifically production:
2020-09-02 18:34:50 +00:00
```bash
npm run build
```
2021-03-01 17:53:51 +00:00
Build output will be available under the `src/dist` folder.
2021-01-19 01:57:46 +00:00
## Other build features
2021-01-19 01:57:46 +00:00
### Running a production build
2021-03-01 17:53:51 +00:00
Instead of a development version, you can run a server with a production-ready build of the client directly with Nuxt, so you can verify in advance how the client will work in a production environment:
2020-09-02 18:34:50 +00:00
```bash
npm run prod
2020-09-02 18:34:50 +00:00
```
2021-01-24 15:35:54 +00:00
_Although the build of the client is production-ready, Nuxt's own HTTP server should never be exposed directly to the internet and a proper hosting tool like Nginx should always be used instead._
2021-12-02 21:16:59 +00:00
### Server-Side Rendering (SSR)
2021-01-24 15:35:54 +00:00
This client fully supports Server-Side Rendering. All the commands listed above have their SSR siblings:
2021-01-24 15:35:54 +00:00
```bash
npm run build:ssr
npm run start:ssr
npm run prod:ssr
```
2021-01-24 15:35:54 +00:00
#### Running standalone
2021-01-24 15:35:54 +00:00
When building the SSR version of the client, all the dependencies (including those only relevant for development) will be included. If you don't plan to contribute or customize the client, these dependencies won't be useful at all for you. In order to save some space at runtime, you can specify to `npm` that you want only runtime dependencies and build an standalone version of the client:
2021-01-24 15:35:54 +00:00
```bash
npm install --production
npm run build:ssr:standalone
2021-01-24 15:35:54 +00:00
```
# 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)