squeaknode/frontend
Jonathan Zernik b9eeaa3c32
Use correct base URL for block explorer block detail (#584)
* Add phony makefile targets in frontend folder

* Make block explorer url depending on network

* Got dynamic block explorer link working for detail page

* Got block explorer link working for ancestor thread squeaks

* Use network to get correct block explorer url in timeline

* Show correct block explorer link in address page

* Update static build
2021-01-09 00:09:36 -08:00
..
public Organize frontend (#346) 2020-10-29 23:21:38 -04:00
src Use correct base URL for block explorer block detail (#584) 2021-01-09 00:09:36 -08: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 Use correct base URL for block explorer block detail (#584) 2021-01-09 00:09:36 -08: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 Improve squeaknode entrypoint command (#583) 2021-01-08 14:17:43 -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 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