Last active
January 30, 2021 22:48
-
-
Save Aimeedeer/aae0d6759fb04bb30478cbf38d4d46ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dfx new firsttest | |
The DFINITY Canister SDK sends anonymous usage data to DFINITY Stiftung by | |
default. If you wish to disable this behavior, then please set the environment | |
variable DFX_TELEMETRY_DISABLED=1. Learn more at https://sdk.dfinity.org. | |
Fetching manifest https://sdk.dfinity.org/manifest.json | |
⠋ Checking for latest dfx version... | |
You seem to be running an outdated version of dfx. | |
You are strongly encouraged to upgrade by running 'dfx upgrade'! | |
Version v0.6.20 installed successfully. | |
Creating new project "firsttest"... | |
CREATE firsttest/src/firsttest_assets/assets/sample-asset.txt (24B)... | |
CREATE firsttest/src/firsttest/main.mo (107B)... | |
CREATE firsttest/dfx.json (484B)... | |
CREATE firsttest/.gitignore (165B)... | |
⠐ Checking for latest dfx version... | |
CREATE firsttest/src/firsttest_assets/public/index.js (149B)... | |
CREATE firsttest/package.json (288B)... | |
CREATE firsttest/webpack.config.js (2.15KB)... | |
⠉ Checking for latest dfx version... | |
⠒ Checking for latest dfx version... | |
⠠ Installing node dependencies... | |
⠤ Checking for latest dfx version... | |
⠖ Installing node dependencies... | |
> fsevents@1.2.13 install /Users/aimeez/github/dfinity-project/firsttest/node_modules/watchpack-chokidar2/node_modules/fsevents | |
> node install.js | |
⠤ Checking for latest dfx version... | |
⠖ Checking for latest dfx version... | |
⠒ Checking for latest dfx version... | |
⠁ Checking for latest dfx version... | |
npm WARN firsttest_assets@0.1.0 No repository field. | |
npm WARN firsttest_assets@0.1.0 No license field. | |
⠙ Checking for latest dfx version... | |
13 packages are looking for funding | |
run `npm fund` for details | |
found 1 high severity vulnerability | |
⠒ Checking for latest dfx version... | |
⠂ Checking for latest dfx version... | |
=============================================================================== | |
Welcome to the internet computer developer community! | |
You're using dfx 0.6.20 | |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄▄▄▀▀▀▀▀▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▀▀▀▀▀▀▄▄▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄ ▀▄▄▄▄▄▄▄▄▄▄▄▄▀ ▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄ | |
▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▀ | |
▀▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄ | |
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ | |
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ | |
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀ ▀▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ | |
▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀ | |
To learn more before you start coding, see the documentation available online: | |
- Quick Start: https://sdk.dfinity.org/docs/quickstart/quickstart-intro.html | |
- SDK Developer Tools: https://sdk.dfinity.org/docs/developers-guide/sdk-guide.html | |
- Motoko Language Guide: https://sdk.dfinity.org/docs/language-guide/motoko.html | |
- Motoko Quick Reference: https://sdk.dfinity.org/docs/language-guide/language-manual.html | |
If you want to work on programs right away, try the following commands to get started: | |
cd firsttest | |
dfx help | |
dfx new --help | |
=============================================================================== | |
Deploy the example program Contacts on IC:
$ dfx deploy --network=ic
Deploying all canisters.
All canisters have already been created.
Building canisters...
Building frontend...
Installing canisters...
Installing code for canister contacts, with canister_id wxjht-eqaaa-aaaaa-qab5q-cai
Installing code for canister contacts_assets, with canister_id 5jw7w-wiaaa-aaaab-qacza-cai
Uploading assets to asset canister...
Deployed canisters.
The url is: https://5jw7w-wiaaa-aaaab-qacza-cai.ic0.app/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out that I used the wrong id for visiting from browsers. I should use contacts_assets's canister_id r7inp-6aaaa-aaaaa-aaabq-cai instead of contacts's canister_id ryjl3-tyaaa-aaaaa-aaaba-cai. It works with URL:
http://127.0.0.1:8000/?canisterId=r7inp-6aaaa-aaaaa-aaabq-cai