@xblackfury/blackfurychain-ui
v2.14.16
Published
<p align="center"><a href="https://dex.blackfurychain.finance" target="_blank" rel="noopener noreferrer"><img src="https://raw.githubusercontent.com/Blackfurychain/.github/main/assets/Blackfurychain%20Logo.svg"/> </a></p> <p align="center"> ⚡️ <b>T H E &n
Downloads
3
Readme
✨ Links
📖 Documentation
Learn how to use Blackfurychain.js.
🖼 Frontend
Blackfurychain's User Interface
Development
| script | description |
| ------------------------ | ------------------------------------------------------------------------------------------- |
| yarn dev
| Run the view app in development mode hotloading changes |
| yarn build
| Build a deployable app to the app/dist
folder |
| yarn start
| Serve the deployable app from the app/dist
folder |
| yarn test
| Run unit and integration tests |
| yarn test --tag [tag]
| Run unit and integration tests against a particular tag (develop/master/blackfury commit etc) |
| yarn stack
| Run backing services based on the latest blackfury release |
| yarn lint
| Lint the code |
| yarn lint --quick
| Quick lint staged code (mainly used in our pre-commit hook) |
| yarn e2e
| Run end to end tests against code built in app/dist
|
| yarn e2e --debug
| Run end to end tests in debug mode against the dev
server. (Good for writing tests) |
| yarn e2e --tag [tag]
| Run end to end tests against a particular tag (develop/master/blackfury commit etc) |
| yarn storybook
| Launch storybook |
| yarn storybook --build
| Build storybook to the storybook-static
folder |
| yarn advance
| Advance the blockchain by the given amount of blocks. Eg. yarn advance 51
|
Running a command with the --help
flag will display a help message explaining what the command does.
Deployment
See ./app/README.md.
Testing against environments
Attaching a query string var _env
will set cookies to point your build to any environment you want:
| url | env | | ------------------------------------ | ---------------------- | | http://localhost:8080?_env=mainnet | MAINNET | | http://localhost:8080?_env=testnet | TESTNET | | http://localhost:8080?_env=devnet | DEVNET | | http://localhost:8080?_env=localnet | LOCALNET | | http://localhost:8080?_env=_ | DEFAULT (Based on url) |
We recommend using bookmarklets:
| name | location |
| -------- | ---------------------------------------------------------------------- |
| CLEAR | javascript:(() => {l=location;l.href=l.pathname+'?_env=_'})()
|
| MAINNET | javascript:(() => {l=location;l.href=l.pathname+'?_env=mainnet'})()
|
| TESTNET | javascript:(() => {l=location;l.href=l.pathname+'?_env=testnet'})()
|
| DEVNET | javascript:(() => {l=location;l.href=l.pathname+'?_env=devnet'})()
|
| LOCALNET | javascript:(() => {l=location;l.href=l.pathname+'?_env=localnet'})()
|