Code Monkey home page Code Monkey logo

sifchain-ui's Introduction

⚡️ T H E    O M N I C H A I N    J A V A S C R I P T    L I B R A R Y ⚡️

FRONTEND 🤝 TRADING BOTS 🤝 ARBITRAGE


✨ Links

Learn how to use Sifchain.js.

Sifchain'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/sifnode commit etc)
yarn stack Run backing services based on the latest sifnode 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/sifnode 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'})()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.