2016-03-15 12:10:27 -04:00
|
|
|
# LBRY Web User Interface
|
|
|
|
|
|
|
|
This is the frontend for LBRY's in-browser application, that is automatically installed when a user installs [LBRY](https://github.com/lbryio/lbry).
|
|
|
|
|
|
|
|
## Development Setup
|
|
|
|
|
|
|
|
These steps will get you to change-reload-see:
|
|
|
|
|
2016-07-20 14:24:54 -04:00
|
|
|
- Install [LBRY](https://github.com/lbryio/lbry/releases)
|
2016-03-15 12:10:27 -04:00
|
|
|
- Install node and npm ([this gist may be useful](https://gist.github.com/isaacs/579814))
|
2016-07-24 11:55:24 -04:00
|
|
|
- Install babel (`npm install -g babel-cli`)
|
2016-07-21 12:26:49 -05:00
|
|
|
- Install babel presets (`npm install babel-preset-es2015 babel-preset-react`)
|
2016-03-15 12:10:27 -04:00
|
|
|
- Install [SASS](http://sass-lang.com/install)
|
2016-07-24 11:55:24 -04:00
|
|
|
- Run `./watch.sh`
|
|
|
|
- Run `lbrynet-daemon --ui=/full/path/to/dist/`
|
2016-03-15 12:10:27 -04:00
|
|
|
- Changes made in `js` and `sass` will be auto compiled to `dist`
|
2016-07-20 18:25:23 -05:00
|
|
|
- `lbrynet-daemon --branch=branchname` can be used to test remote branches
|
|
|
|
- `lbry.call('configure_ui', {path: '/path/to/ui'})` can be used in JS console on web ui to switch ui path
|
|
|
|
- Occasionally refreshing the cache may be necessary for changes to show up in browser
|
2016-07-20 22:06:39 -04:00
|
|
|
|
|
|
|
## Common Issues
|
|
|
|
1. Error: Couldn't find preset "es2015" relative to directory "js"
|
|
|
|
|
|
|
|
Fix with:
|
|
|
|
npm install babel-preset-es2015 --save
|
|
|
|
npm install babel-preset-react --save
|