2022-09-15 17:50:52 +00:00
|
|
|
# React Auth dApp (React, Typescript, Next.js, Ethers)
|
2022-09-02 09:34:03 +00:00
|
|
|
|
2022-09-15 17:50:52 +00:00
|
|
|
🔗 Live dapp demo - https://react-auth-dapp.walletconnect.com/ <br />
|
|
|
|
🔗 Live wallet demo - https://react-auth-wallet.walletconnect.com/ <br />
|
|
|
|
📚 WalletConnect v2 Docs - https://docs.walletconnect.com/2.0
|
2022-09-02 09:34:03 +00:00
|
|
|
|
2022-09-15 17:50:52 +00:00
|
|
|
## Overview
|
2022-09-02 09:34:03 +00:00
|
|
|
|
2022-09-15 17:50:52 +00:00
|
|
|
This example aims to demonstrate dapp-facing use cases enabled by WalletConnect Auth Alpha.
|
2022-09-02 09:34:03 +00:00
|
|
|
|
2022-09-15 17:50:52 +00:00
|
|
|
## Running locally
|
|
|
|
|
|
|
|
Install the app's dependencies:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm i
|
|
|
|
```
|
|
|
|
|
|
|
|
Set up your local environment variables by copying the example into your own `.env.local` file:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cp .env.local.example .env.local
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `.env.local` now contains the following environment variables:
|
|
|
|
|
|
|
|
- `NEXT_PUBLIC_PROJECT_ID` (placeholder) - You can generate your own ProjectId at https://cloud.walletconnect.com
|
|
|
|
|
|
|
|
## Develop
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm run build
|
|
|
|
```
|