Dfinity
Background
Relevant URL:
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
Setup
Look at : https://sdk.dfinity.org/docs/quickstart/local-quickstart.html
// Installing the SDK Kit
$ sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
// installed on Installed /usr/local/bin/dfx
// Check the version is well installed
$ dfx --version
// Access to the help CLI
$ dfx --help
Your First Prog
$ dfx new hello
// Open a CLI, go on the Project Directory
// Start the Internet Computer locally
$ dfx start
// check that all npm module are install in your projec direcoty
$ npm install
// Register, build, and deploy your first application on the local Internet Computer
$ dfx deploy
// Launch the app:
// Call the hello canister and the predefined greet function
// This example uses the dfx canister call command to pass "everyone" as an argument to the greet function.
$ dfx canister call hello greet everyone
// ==> ("Hello, everyone!")
To run the Web Application: http://127.0.0.1:8000/?canisterId=ryjl3-tyaaa-aaaaa-aaaba-cai
Last updated
Was this helpful?