Skip to content

Commit

Permalink
fix: Outdated Dev Ladder instructions/code (#3933)
Browse files Browse the repository at this point in the history
* fix dev ladder

* fix

* fix

* fix

* fix

* fix

* add sub update for quill doc

* fix
  • Loading branch information
jessiemongeon1 authored Jan 9, 2025
1 parent 4fd380c commit 54b9830
Show file tree
Hide file tree
Showing 11 changed files with 79 additions and 821 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ You will be prompted to select the language that your backend canister will use.
`dfx` versions `v0.17.0` and newer support this `dfx new` interactive prompt. [Learn more about `dfx v0.17.0`](/blog/2024/02/14/news-and-updates/update#dfx-v0170).
:::

Then, select a frontend framework for your frontend canister. Select 'No frontend canister':
Then, select a frontend framework for your frontend canister. Select 'None':

```
? Select a frontend framework: ›
Expand All @@ -117,7 +117,7 @@ Then, select a frontend framework for your frontend canister. Select 'No fronten
Vue
Vanilla JS
No JS template
No frontend canister
None
```

Lastly, you can include extra features to be added to your project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ You will be prompted to select the language that your backend canister will use.
`dfx` versions `v0.17.0` and newer support this `dfx new` interactive prompt. [Learn more about `dfx v0.17.0`](/blog/2024/02/14/news-and-updates/update#dfx-v0170).
:::

Then, select a frontend framework for your frontend canister. Select 'No frontend canister':
Then, select a frontend framework for your frontend canister. Select 'None':

```
? Select a frontend framework: ›
Expand All @@ -65,7 +65,7 @@ Then, select a frontend framework for your frontend canister. Select 'No fronten
Vue
Vanilla JS
No JS template
No frontend canister
None
```

Lastly, you can include extra features to be added to your project:
Expand Down Expand Up @@ -152,14 +152,7 @@ Next, you'll set the `init` arguments for the dependency canisters using the `df
dfx deps init
```

This will show that our II canister requires an `init` argument:

```bash
WARN: The following canister(s) require an init argument. Please run `dfx deps init <NAME/PRINCIPAL>` to set them individually:
rdmx6-jaaaa-aaaaa-aaadq-cai (internet_identity)
```

This output shows you that the Internet Identity canister requires an `init` argument, but it doesn't give you any additional information. For more information, run the command `dfx deps init rdmx6-jaaaa-aaaaa-aaadq-cai`, which will provide an error message that shows you more details:
The Internet Identity canister requires an `init` argument. For more information, run the command `dfx deps init rdmx6-jaaaa-aaaaa-aaadq-cai`, which will provide an error message:

```bash
Error: Canister rdmx6-jaaaa-aaaaa-aaadq-cai (internet_identity) requires an init argument. The following info might be helpful:
Expand Down
12 changes: 9 additions & 3 deletions docs/tutorials/developer-journey/level-2/2.4-intro-candid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ You will be prompted to select the language that your backend canister will use.
`dfx` versions `v0.17.0` and newer support this `dfx new` interactive prompt. [Learn more about `dfx v0.17.0`](/blog/2024/02/14/news-and-updates/update#dfx-v0170).
:::

Then, select a frontend framework for your frontend canister. Select 'No frontend canister':
Then, select a frontend framework for your frontend canister. Select 'None':

```
? Select a frontend framework: ›
Expand All @@ -243,7 +243,7 @@ Then, select a frontend framework for your frontend canister. Select 'No fronten
Vue
Vanilla JS
No JS template
No frontend canister
None
```

Lastly, you can include extra features to be added to your project:
Expand Down Expand Up @@ -278,7 +278,13 @@ Save this file. Then, compile and deploy the project with the command:
dfx deploy
```

Recall that the Motoko compiler will automatically generate the Candid service description file based off of this code. This Candid file can be found at `src/declarations/candid_example_backend/candid_example_backend.did` and will contain the following:
To generate the Candid service description file based off of this code, run the command:

```
dfx generate
```

The generated Candid file can be found at `src/declarations/candid_example_backend/candid_example_backend.did` and will contain the following:

```candid title="src/declarations/candid_example_backend/candid_example_backend.did"
service : {
Expand Down
8 changes: 2 additions & 6 deletions docs/tutorials/developer-journey/level-2/2.5-unit-testing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ You will be prompted to select the language that your backend canister will use.
`dfx` versions `v0.17.0` and newer support this `dfx new` interactive prompt. [Learn more about `dfx v0.17.0`](/blog/2024/02/14/news-and-updates/update#dfx-v0170).
:::

Then, select a frontend framework for your frontend canister. Select 'No frontend canister':
Then, select a frontend framework for your frontend canister. Select 'None':

```
? Select a frontend framework: ›
Expand All @@ -185,7 +185,7 @@ Then, select a frontend framework for your frontend canister. Select 'No fronten
Vue
Vanilla JS
No JS template
No frontend canister
None
```

Lastly, you can include extra features to be added to your project:
Expand Down Expand Up @@ -366,10 +366,6 @@ test("Should contain a candid interface", async () => {
});
```
:::info
Need the full `src/tests/e2e_tests_backend.test.ts` file? [Check out the repo containing the full project for this tutorial](https://github.com/krpeacock/sample-canister-e2e).
:::
This test simply checks that our canister's metadata contains a Candid interface.
Then, run the test again with the `npm test` command. This time, the output should reflect 2 successful tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You will be prompted to select the language that your backend canister will use.
`dfx` versions `v0.17.0` and newer support this `dfx new` interactive prompt. [Learn more about `dfx v0.17.0`](/blog/2024/02/14/news-and-updates/update#dfx-v0170).
:::

Then, select a frontend framework for your frontend canister. Select 'No frontend canister':
Then, select a frontend framework for your frontend canister. Select 'None':

```
? Select a frontend framework: ›
Expand All @@ -90,7 +90,7 @@ Then, select a frontend framework for your frontend canister. Select 'No fronten
Vue
Vanilla JS
No JS template
No frontend canister
None
```

Lastly, you can include extra features to be added to your project:
Expand Down
Loading

0 comments on commit 54b9830

Please sign in to comment.