squeaknode/frontend/README.md
Jonathan Zernik 058240841d
Use python venv (#1920)
* Automatically install requirements.txt in setup

* Remove extra copy of requirements.txt in dockerfile
2021-12-29 18:48:53 -08:00

683 B
Executable file

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:
    python3 -m venv venv
    source venv/bin/activate
    pip 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