squeaknode/frontend
Jonathan Zernik 0022860e7f
Refactor navigation functions (#776)
* Refactor navigation functions out of offer detail component

* Remove old commentes

* Fix go to lightning node from offer detail

* Refactor more navigation functions

* Refactor goto function out of create contact profile

* Refactor goto out of create peer dialog

* Refactor goto out of create signing dialog

* Refactor goto out of delete squeak dialog

* Refactor goto out of import signing profile dialog

* Refactor goto out of lightning peer list dialog

* Refactor goto out of make squeak dialog

* Refactor goto out of open channel dialog

* Refactor goto out of pending open channel component

* Refactor goto out of pending received payment component

* Refactor goto out of send bitcoin dialog

* Refactor goto out of sent offer component

* Refactor goto out of sent payment component

* Refactor goto out of squeak detail component

* Refactor goto out of profile detail component

* Refactor goto out of squeak thread item component

* Refactor goto out of payments page

* Refactor goto out of peers page

* Refactor goto out of profile page

* Refactor goto out of squeak page

* Refactor goto out of squeak address page

* Refactor goto out of timeline page

* Refactor reload out of buy dialog

* Refactor reload out of delete peer dialog

* Refactor reload out of delete profile dialog

* Refactor reload out of delete squeak dialog

* Refactor reload out of header

* Refactor reload out of squeak detail component

* Refactor goto out of timeline avatar component

* Refactor reload out of upload image dialog

* Refactor reload out of channel page

* Refactor reload out of lightning node page

* Refactor goto out of profiles page
2021-02-01 02:39:00 -08:00
..
public Organize frontend (#346) 2020-10-29 23:21:38 -04:00
src Refactor navigation functions (#776) 2021-02-01 02:39:00 -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 Fix frontend build copy static build to right folder (#609) 2021-01-11 17:47:27 -08:00
package-lock.json Use react timeline for thread (#716) 2021-01-26 21:18:44 -08:00
package.json Use react timeline for thread (#716) 2021-01-26 21:18:44 -08: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