squeaknode/frontend
Jonathan Zernik b9ac4b86b4
Use peer address struct in requests (#1004)
* Update connect peer and disconnect peer rpc to use peer addrss struct

* Update get connected peer rpc to use peer addrss struct

* Use peer address struct in create saved peer rpc

* Use peer address struct in squeak peer struct

* Use peer address for requests functions in frontend

* Update frontend build
2021-08-21 00:54:48 -07:00
..
public Organize frontend (#346) 2020-10-29 23:21:38 -04:00
src Use peer address struct in requests (#1004) 2021-08-21 00:54:48 -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
envoy.yaml Add config for stream idle timeout in envoy (#985) 2021-08-20 00:20:23 -07: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 Revert commit: 9ab6dba379 2021-08-19 00:11:06 -07:00
package-lock.json Bump @grpc/grpc-js from 1.0.5 to 1.1.8 in /frontend (#891) 2021-06-01 18:04:31 -07:00
package.json Bump @grpc/grpc-js from 1.0.5 to 1.1.8 in /frontend (#891) 2021-06-01 18:04:31 -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 Bump @grpc/grpc-js from 1.0.5 to 1.1.8 in /frontend (#891) 2021-06-01 18:04:31 -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