starcoinorg / starmask-test-dapp

Starcoin E2E tests based on starcoin.js

Home Page:https://starmask-test-dapp.starcoin.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Starmask Test Dapp

This is a simple test dapp for use in Starmask e2e tests and manual QA.

Currently hosted at https://starmask-test-dapp.starcoin.org.

HTTPS

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
}

Development

  1. Install dependencies
yarn
  1. Start local server
yarn start
  1. Open browser(Chrome/Safari/Firefox, etc), and go to http://localhost:9022

Contract deployment and execution

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.

About

Starcoin E2E tests based on starcoin.js

https://starmask-test-dapp.starcoin.org

License:MIT License


Languages

Language:JavaScript 73.6%Language:HTML 20.5%Language:Shell 3.5%Language:CSS 1.1%Language:Solidity 0.7%Language:Move 0.5%