This repository contains a complete frontend applications to work with
NCD.L1.sample--lottery smart contract targeting the NEAR platform:
- Vue.Js (main branch)
- React (react branch)
- Angular (angular branch)
The example here is playful. It's a toy involving a lottery. The goal of this repository is to make it as easy as possible to get started writing frontend with VueJs and React for AssemblyScript contracts built to work with NEAR Protocol.
Any content produced by NEAR, or developer resources that NEAR provides, are for educational and inspiration purposes only. NEAR does not encourage, induce or sanction the deployment of any such applications in violation of applicable laws or regulations.
You can use this app with contract id`s which was deployed by creators of this repo, or you can use it with your own deployed contractId. If you are using not yours contractId some functions of the lottery contract will not work because they are setted to work only if owner called this functions.
Example of such function:
To get possibility to work with the full functionality of the smart contract, you need to paste your contractId inside UI of VueJs deployed dapp or React deployed dapp. Before pasting id make sure that you deployed correct smart contract, in other case this code may not work as expected.
How to correctly deploy NCD.L1.sample--lottery smart contract (video tutorial)
After you deployed your contract, you need to paste id in one of deployed dapps
In main branch README file is presented setup for Vue.Js, React setup README file is in react branch
npm install
npm run serve
npm run build
npm run lint