2016-07-07 23:23:18 +02:00
|
|
|
Ampache React
|
|
|
|
=============
|
|
|
|
|
|
|
|
This is an alternative web interface for
|
|
|
|
[Ampache](https://github.com/ampache/ampache/) built using Ampache XML API and
|
|
|
|
React.
|
|
|
|
|
|
|
|
## Trying it out
|
|
|
|
|
2016-08-04 15:28:07 +02:00
|
|
|
Just drop this repo in a location served by a webserver, make your webserver
|
|
|
|
serve the `public` folder and head your browser to the correct URL :)
|
2016-07-07 23:23:18 +02:00
|
|
|
|
2016-08-03 15:44:29 +02:00
|
|
|
Or you can use the [hosted version](https://phyks.github.io/ampache_react/).
|
2016-07-07 23:23:18 +02:00
|
|
|
|
2016-08-05 13:31:57 +02:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
To use this interface, you need:
|
2016-08-12 12:06:34 +02:00
|
|
|
* An Ampache server on which you have an account, serving the [XML
|
|
|
|
API](https://github.com/ampache/ampache/wiki/XML-API). Ensures your server
|
|
|
|
has correct [CORS header](https://www.w3.org/wiki/CORS_Enabled) set.
|
2016-08-05 13:31:57 +02:00
|
|
|
* A modern browser.
|
|
|
|
|
|
|
|
For now, this is a work in progress and as such, the [hosted
|
|
|
|
version](https://phyks.github.io/ampache_react/) (or `gh-pages` branch) always
|
|
|
|
require the latest `develop` branch of Ampache. As soon as this is stabilized
|
|
|
|
and Ampache gets a new version, this note will be updated with the required
|
|
|
|
Ampache version.
|
|
|
|
|
|
|
|
Note that `master` branch may differ from `gh-pages` branch from time to time,
|
|
|
|
and `master` branch may rely on commits that are not yet in Ampache `develop`
|
|
|
|
branch. `gh-pages` branch is ensured to be working with latest Ampache
|
|
|
|
`develop` branch.
|
|
|
|
|
2016-07-07 23:23:18 +02:00
|
|
|
## Support
|
|
|
|
|
|
|
|
The supported browsers should be:
|
|
|
|
|
|
|
|
* `IE >= 9` (previous versions of IE are no longer supported by Microsoft)
|
2016-07-25 23:22:44 +02:00
|
|
|
* Any last three versions of major browsers (> 1% net share).
|
|
|
|
* No support provided for Opera Mini.
|
2016-07-07 23:23:18 +02:00
|
|
|
|
|
|
|
If you experience any issue, please report :)
|
|
|
|
|
|
|
|
|
|
|
|
## Building
|
|
|
|
|
|
|
|
Building of this app relies on `webpack`.
|
|
|
|
|
|
|
|
First do a `npm install` to install all the required dependencies.
|
|
|
|
|
|
|
|
Then, to make a development build, just run `webpack` in the root folder. To
|
|
|
|
make a production build, just run `NODE_ENV=production webpack` in the root
|
2016-08-04 15:28:07 +02:00
|
|
|
folder. All files will be generated in the `public` folder.
|
2016-07-07 23:23:18 +02:00
|
|
|
|
|
|
|
Please use the Git hooks (in `hooks` folder) to automatically make a build
|
|
|
|
before comitting, as commit should always contain an up to date production
|
|
|
|
build.
|
|
|
|
|
2016-07-28 23:14:52 +02:00
|
|
|
Compilation cache is stored in `.cache` at the root of this repo. Remember to
|
|
|
|
clean it in case of compilation issues.
|
|
|
|
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
|
|
See `CONTRIBUTING.md` file for extra infos.
|
|
|
|
|
|
|
|
|
2016-07-07 23:23:18 +02:00
|
|
|
## License
|
|
|
|
|
|
|
|
This code is distributed under an MIT license.
|
|
|
|
|
|
|
|
Feel free to contribute and reuse. For more details, see `LICENSE` file.
|