squeaknode/docs/DEVELOPMENT.md
2021-09-02 14:01:13 -07:00

831 B

development

Run in development mode:

Background services

  • Start the required background services in docker:
    $ cd docker
    $ docker-compose build
    $ docker-compose up
    
  • You may need to change the permissions of the ~/.lnd directory after docker containers start:
    $ sudo chmod -R 755 ~/.lnd/
    

Squeaknode backend

  • Install squeaknode:
    $ virtualenv venv
    $ source venv/bin/activate
    $ pip install -r requirements.txt
    $ python setup.py install
    
  • Run squeaknode with authentication disabled:
    $ SQUEAKNODE_WEBADMIN_ENABLED=TRUE SQUEAKNODE_WEBADMIN_LOGIN_DISABLED=TRUE SQUEAKNODE_WEBADMIN_ALLOW_CORS=TRUE SQUEAKNODE_NETWORK=testnet squeaknode --config config.ini
    

Squeaknode frontend

  • Run the frontend react app in dev mode:
    $ cd frontend
    $ make rundev