squeaknode/frontend
Jonathan Zernik a94d4ccd63
Simplify frontend readme (#539)
* Simplify frontend readme

* Fix bitcoin user and pass configs in frontend readme
2021-01-01 22:21:27 -08:00
..
public Organize frontend (#346) 2020-10-29 23:21:38 -04:00
src Remove channel item expand btn (#496) 2020-11-30 23:11:52 -05: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 Add squeak detail page (#412) 2020-11-07 22:19:24 -05:00
package-lock.json redid styles code for wallet page (#473) 2020-11-25 13:51:27 -05:00
package.json redid styles code for wallet page (#473) 2020-11-25 13:51:27 -05:00
pb_disable-eslint.sh Organize frontend (#346) 2020-10-29 23:21:38 -04:00
README.md Simplify frontend readme (#539) 2021-01-01 22:21:27 -08:00
yarn.lock Organize frontend (#346) 2020-10-29 23:21:38 -04: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 runsqueaknode --config config.ini run-server
    
  • Start the frontend in development mode:
    $ cd frontend
    $ make rundev
    

Build for production

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