Skip to content

hhzule/internet-computer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Creating a Internet Computer Project

Create a New Project

> dfx new projectName

> cd projectname

Start the Local Network

> dfx start --background

Create Canister

> dfx canister create --all

Start by building the whole code

> dfx build

Deploy the project locally

> dfx canister install --all

Call the start function

> dfx canister call explore_hello greet '("everyone": text)'

next, navigate to canister_ids.json in "./.dfx/local/canister_ids.json" and copy the assets key

{
  ...

  "projectname_assets": {
    "local": "key"
  }
}

Start the Development server

> npm start 

In your web browser go to https://localhost:8000/?canisterId=thekeyyoucopied and paste the key you copied in "?canisterId="

hello

Enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors