We just demostrate how to use Laksa to build a fully front-end app as client-side and have all the abillities to access Zilliqa's blockchain.
Demo: https://Laksa-Client-Example.now.sh/
- node.js (v10.0.0+)
node -v #check your node.js version
- latest npm or yarn (Recommended)
npm i -g yarn #install yarn
- google chrome(firefox is not tested yet)
- git clone
git clone git@github.com:FireStack-Lab/Laksa-Client-Example.git && cd Laksa-Client-Example
- yarn install
yarn install
- run
yarn start
- open browser and access
http://localhost:8000
- Check connection to Zilliqa's TestNet and Scilla runner(remote)
- You can add provider of your own(if you have full-node or scilla-runner runing,
http
only, NOTWebSocket
)
- You can see recent Transactions/TxBlocks/DsBlocks
- You can search Transaction/Address/TxBlock/DsBlock
- Create Account and encrpyt with password(Not Safe)
- Import PrivateKey
- See Balance
- Set Default Signer(Demostration only)
- Save your scilla code to contract raw code
- Deploy with your account and set up Contract ABIs and Transaction Parameters
- Call Contract(if deployed)
- Transfer some token to desired address
- Nothing More...
- Laksa, Zilliqa's 3rd party javascript library
- Umi.js, Pluggable enterprise-level react application framework.
- Dva.js, React and redux based, lightweight and elm-style framework.
- antd, A design system with values of Nature and Determinacy for better user experience of enterprise application
- Dexie.js, A Minimalistic Wrapper for IndexedDB