Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/starcoinorg/starmask-test-dapp
Starcoin E2E tests based on starcoin.js
https://github.com/starcoinorg/starmask-test-dapp
blockchain dapp e2e-test starcoin
Last synced: about 1 month ago
JSON representation
Starcoin E2E tests based on starcoin.js
- Host: GitHub
- URL: https://github.com/starcoinorg/starmask-test-dapp
- Owner: starcoinorg
- License: mit
- Created: 2021-03-30T05:47:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T02:36:10.000Z (over 2 years ago)
- Last Synced: 2023-03-04T17:40:11.758Z (almost 2 years ago)
- Topics: blockchain, dapp, e2e-test, starcoin
- Language: JavaScript
- Homepage: https://starmask-test-dapp.starcoin.org
- Size: 493 KB
- Stars: 7
- Watchers: 12
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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://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](https://caddyserver.com). 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
````2. Start local server
```
yarn start
```3. 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](https://developer.starcoin.org/en/tutorials/deploy_move_contract/).
After you get the address of the contract, you could execute it in this test-dapp.