lbry-desktop/README.md
2017-01-06 07:00:49 -05:00

1.1 KiB

LBRY Web User Interface

This is the frontend for LBRY's in-browser application, that is automatically installed when a user installs LBRY.

Development Setup

These steps will get you to change-reload-see:

  • Install LBRY
  • Install node and npm (this gist may be useful)
  • Run ./watch.sh (this will npm install dependencies). Changes made in sass and js will be auto compiled to dist
  • Run lbrynet-daemon --ui=/full/path/to/dist/ to start LBRY
  • lbry.call('configure_ui', {path: '/path/to/ui'}) can be used in JS console on web ui to switch ui path. This is also needed to trigger a reload after making changes to the UI.
  • lbrynet-daemon --branch=branchname can be used to test remote branches
  • Occasionally refreshing the cache may be necessary for changes to show up in browser

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