Dfinity

Background

Relevant URL:

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