This is a simple test dapp for use in Starmask e2e tests and manual QA.
Currently hosted at https://starmask-test-dapp.starcoin.org.
Online verison will only work if your Starcoin node URL protocol is HTTPS.
If you run it on your local machine, you could use a node URL with HTTP protocol.
Recommended way to add HTTPS to your Starcoin node is using Caddy. Install it on your computer, create a Caddyfile in current directory, and run caddy start
. Caddy will proxy requests to your node.
Example Caddyfile:
starcoin.your-domain.com {
reverse_proxy 127.0.0.1:9850
}
- Install dependencies
yarn
- Start local server
yarn start
- Open browser(Chrome/Safari/Firefox, etc), and go to http:https://localhost:9022
Check the file MyCounter.move
in this repo, try to deploy and execute it in the Starcoin command line, please refer to Deploy move contract.
After you get the address of the contract, you could execute it in this test-dapp.