squeaknode/frontend
Jonathan Zernik af5577ff8d
Show external address in dialog on button click and remove from page … (#1258)
* Show external address in dialog on button click and remove from page text

* Run frontend lint

* Remove unused reset fields function

* Update frontend build
2021-09-09 20:41:28 -07:00
..
public Remove routes tab from lightning node page (#1248) 2021-09-09 15:05:53 -07:00
src Show external address in dialog on button click and remove from page … (#1258) 2021-09-09 20:41:28 -07:00
.eslintrc.js Configure eslint (#1097) 2021-08-28 21:09:22 -07:00
.gitignore Organize frontend (#346) 2020-10-29 23:21:38 -04:00
.prettierrc Organize frontend (#346) 2020-10-29 23:21:38 -04:00
build-protos.sh Organize frontend (#346) 2020-10-29 23:21:38 -04:00
changelog.md Organize frontend (#346) 2020-10-29 23:21:38 -04:00
LICENSE.txt Organize frontend (#346) 2020-10-29 23:21:38 -04:00
make-build.sh Organize frontend (#346) 2020-10-29 23:21:38 -04:00
Makefile Fix failed user request in dev mode (#1160) 2021-09-03 04:22:44 -07:00
package-lock.json Configure eslint (#1097) 2021-08-28 21:09:22 -07:00
package.json Configure eslint (#1097) 2021-08-28 21:09:22 -07:00
pb_disable-eslint.sh Organize frontend (#346) 2020-10-29 23:21:38 -04:00
README.md Improve squeaknode entrypoint command (#583) 2021-01-08 14:17:43 -08:00
yarn.lock Configure eslint (#1097) 2021-08-28 21:09:22 -07:00

frontend

Run in dev mode

  • Start bitcoin-core and lnd in docker-compose:
    $ cd docker
    $ docker-compose up
    
  • Start the backend with the SQUEAKNODE_WEBADMIN_ENABLED, SQUEAKNODE_WEBADMIN_LOGIN_DISABLED, and SQUEAKNODE_WEBADMIN_ALLOW_CORS environment variables:
    $ virtualenv venv
    $ source venv/bin/activate
    $ pip install -r requirements.txt
    $ python setup.py install
    $ SQUEAKNODE_WEBADMIN_ENABLED=TRUE SQUEAKNODE_WEBADMIN_LOGIN_DISABLED=TRUE SQUEAKNODE_WEBADMIN_ALLOW_CORS=TRUE SQUEAKNODE_NETWORK=testnet squeaknode --config config.ini
    
  • Start the frontend in development mode:
    $ cd frontend
    $ make rundev
    

Build for production

  • Run the build command:
    $ cd frontend
    $ make build