2022-03-19 13:35:32 -04:00
# OwnTone web interface
2018-08-11 01:47:10 -04:00
2022-03-19 13:35:32 -04:00
Mobile friendly player web interface for [OwnTone ](http://owntone.github.io/owntone-server/ ) build
with [Vue.js ](https://vuejs.org ), [Bulma ](http://bulma.io ).
2018-08-11 01:47:10 -04:00
## Screenshots
< img src = "screenshots/Screenshot-now-playing.png" width = "300" alt = "Now playing" > < img src = "screenshots/Screenshot-queue.png" width = "300" alt = "Queue" > < img src = "screenshots/Screenshot-artists.png" width = "300" alt = "Artists" > < img src = "screenshots/Screenshot-album.png" width = "300" alt = "Album" >
## Usage
2021-04-09 13:37:54 -04:00
You can find OwnTone's web interface at [http://owntone.local:3689 ](http://owntone.local:3689 )
2018-08-11 01:47:10 -04:00
or alternatively at [http://[your_server_address_here]:3689](http://[your_server_address_here]:3689).
## Build Setup
The source is located in the `web-src` folder.
```
cd web-src
```
2022-03-19 13:35:32 -04:00
The web interface is built with [Vite ](https://vitejs.dev/ ), makes use of Prettier for code formatting
and ESLint for code linting (the project was set up following the guide [ESLint and Prettier with Vite and Vue.js 3 ](https://vueschool.io/articles/vuejs-tutorials/eslint-and-prettier-with-vite-and-vue-js-3/ )
2018-08-11 01:47:10 -04:00
``` bash
# install dependencies
npm install
2022-03-19 13:35:32 -04:00
# Serve with hot reload at localhost:3000
# (assumes that OwnTone server is running on localhost:3689)
npm run serve
2018-08-11 01:47:10 -04:00
2022-03-19 13:35:32 -04:00
# Serve with hot reload at localhost:3000
# (with remote OwnTone server reachable under owntone.local:3689)
VITE_OWNTONE_URL=http://owntone.local:3689 npm run serve
# Build for production with minification (will update web interface in "../htdocs")
2018-08-11 01:47:10 -04:00
npm run build
2022-03-19 13:35:32 -04:00
# Format code
npm run format
# Lint code (and fix errors that can be automatically fixed)
npm run lint
2018-08-11 01:47:10 -04:00
```
2022-03-19 13:35:32 -04:00
After running `npm run serve` the web interface is reachable at [localhost:3000 ](http://localhost:3000 ).
By default it expects **owntone** to be running at [localhost:3689 ](http://localhost:3689 ) and proxies all
JSON API calls to this location.
If the server is running at a different location you have to set the env variable `VITE_OWNTONE_URL` .