/passbook.motoko

PassBook Fork

Primary LanguageJavaScript

Run for FE

  1. Build your front-end.

    npm install
    
  npm run start:dev

Run for FE, Motoko

  1. Start a local internet computer.

    dfx start
    
  2. Open a new terminal window.

  3. Reserve an identifier for your canister.

    dfx canister create --all
    
  4. Build your front-end.

    npm install
    
  5. Build your canister.

    dfx build superheroes
    
  6. Deploy your canister.

    
    

dfx canister install superheroes --argument="(principal "$(dfx identity get-principal)")"

```text
npm start:dev
  1. Take note of the URL at which the canister is accessible.

    echo "http://localhost:8000/?canisterId=$(dfx canister id www)"
    
  2. Open the aforementioned URL in your web browser.

CANISTER: kvyhi-eyaaa-aaaag-qassa-cai

  1. 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