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
### 1. [Download and install the IC SDK.](https://internetcomputer.org/docs/building-apps/getting-started/install)
22
20
23
-
Navigate into the folder containing the project's files and start a local instance of the Internet Computer with the commands:
21
+
### 2. Download your project from ICP Ninja using the 'Download files' button on the upper left corner, or [clone the GitHub examples repository.](https://github.com/dfinity/examples/)
24
22
23
+
### 3. Navigate into the project's directory.
25
24
26
-
```bash
27
-
cd examples/motoko/counter
28
-
dfx start --background
29
-
```
30
-
31
-
## Step 2: Deploy the canister
32
-
33
-
```bash
34
-
dfx deploy
35
-
```
36
-
37
-
## Step 3: Set the value of the counter
38
-
39
-
```bash
40
-
dfx canister call counter set'(7)'
41
-
```
42
-
43
-
## Step 4: Increment the value of the counter
25
+
### 4. Deploy the project to your local environment:
44
26
45
-
```bash
46
-
dfx canister call counter inc
47
27
```
48
-
49
-
## Step 5: Get the value of the counter
50
-
51
-
```bash
52
-
dfx canister call counter get
53
-
```
54
-
55
-
The following output should be returned:
56
-
57
-
```bash
58
-
(8 : nat)
28
+
dfx start --background --clean && dfx deploy
59
29
```
60
30
61
-
## Resources
62
-
To learn more about these features of Motoko, see:
If you base your application on this example, we recommend you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/current/references/security/) for developing on the Internet Computer. This example may not implement all the best practices.
33
+
If you base your application on this example, it is recommended that you familiarize yourself with and adhere to the [security best practices](https://internetcomputer.org/docs/building-apps/security/overview) for developing on ICP. This example may not implement all the best practices.
0 commit comments