-
Build your front-end.
npm install
npm run start:dev
-
Start a local internet computer.
dfx start
-
Open a new terminal window.
-
Reserve an identifier for your canister.
dfx canister create --all
-
Build your front-end.
npm install
-
Build your canister.
dfx build superheroes
-
Deploy your canister.
dfx canister install superheroes --argument="(principal "$(dfx identity get-principal)")"
```text
npm start:dev
-
Take note of the URL at which the canister is accessible.
echo "http://localhost:8000/?canisterId=$(dfx canister id www)"
-
Open the aforementioned URL in your web browser.
CANISTER: kvyhi-eyaaa-aaaag-qassa-cai
- UPGRADE dfx build superheroes && dfx canister install superheroes --argument="(principal "$(dfx identity get-principal)")" --all --mode=upgrade
dfx deploy --with-cycles 8000000000000 --argument="(principal "$(dfx identity get-principal)")" superheroes