Skip to content

Commit

Permalink
feat: add initial MiniDApps
Browse files Browse the repository at this point in the history
  • Loading branch information
therealharpaljadeja committed Oct 8, 2023
0 parents commit fe1aa07
Show file tree
Hide file tree
Showing 20 changed files with 31,763 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
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*
38 changes: 38 additions & 0 deletions README.md
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!
Loading

0 comments on commit fe1aa07

Please sign in to comment.