You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a scaffold for an FCL NextJS Dapp on the Flow Blockchain.
1
+
This is a scaffold for an a NextJS App on the Flow Blockchain. It uses `@onflow/kit` which is a React library built on top of [FCL](https://github.com/onflow/fcl-js)
2
2
3
3
## Features Provided
4
4
5
-
-FCL setup and configuration
5
+
-`@onflow/kit` setup and configuration
6
6
- Wallet Discovery (including Dev Wallet on Emulator)
Run the following to run the Emulator and Dev Wallet:
30
-
31
-
```bash
32
-
npm run dev:local
28
+
```
29
+
flow dev-wallet
33
30
```
34
31
35
-
### Testnet
36
-
37
-
If you haven't yet created a testnet account, in the CLI run:
32
+
Then run the app:
38
33
39
34
```
40
-
flow accounts create
35
+
npm run dev:local
41
36
```
42
-
43
-
Follow the steps and select testnet. This will create a `[name].pkey` file (make sure this is gitignored) and add your account to flow.json.
44
-
45
-
Then in `flow.json`, add the contracts you'd like to be deployed to testnet under this account:
46
-
47
37
```
48
-
// Inside of "deployments"
49
-
"testnet": {
50
-
"testnet-account": [
51
-
"HelloWorld"
52
-
]
53
-
}
38
+
npm run dev:emulator
54
39
```
55
40
56
-
Then run:
41
+
### Running Tesnet
42
+
43
+
Run the following the Emulator:
57
44
45
+
```bash
46
+
npm run dev:local
58
47
```
59
-
npm run dev:testnet:deploy
60
-
```
61
48
62
-
Whenever you need to redeploy changed contracts to Testnet while seeing the diff between deployed contracts and updates being pushed, you can run:
49
+
### Testnet
50
+
51
+
To run against an already deployed contract on Testnet with a non-dev wallet, you can use the following command:
63
52
64
53
```
65
-
npm run dev:testnet:update
54
+
npm run dev:testnet
66
55
```
56
+
57
+
## Learning More
58
+
59
+
To learn more about Flow, Flow CLI, and front end development on Flow, check out the [Getting Started](https://developers.flow.com/build/getting-started/contract-interaction) guide.
0 commit comments