-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fe1aa07
Showing
20 changed files
with
31,763 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# MiniPay MiniDApps | ||
|
||
MiniDApps for quick testing & prototyping in MiniPay. | ||
|
||
## How to use | ||
|
||
1. Create MiniDApps in the `/dApps` folder | ||
2. Import the DApp in the `App.tsx` file | ||
3. Run the following command to start the DApp | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
This will start the app at `http://localhost:3000`. | ||
|
||
4. Since, this app is running on localhost and cannot be opened in MiniPay we need to create a tunnel we will use [ngrok](https://ngrok.com/) for the same. | ||
|
||
5. Create an account on ngrok, setup ngrok on your machine. | ||
|
||
> [!NOTE] | ||
> ngrok is offering free static domain, use that so the url of the app does not change! | ||
|
||
6. Use the following command, to start the tunnel. | ||
|
||
If you have the static domain | ||
|
||
```bash | ||
ngrok http --domain=<STATIC_DOMAIN> 3000 | ||
``` | ||
|
||
If not | ||
|
||
```bash | ||
ngrok http 3000 | ||
``` | ||
|
||
7. Open the Site Tester dApp inside MiniPay and use the static url or the url you get from ngrok! |
Oops, something went wrong.