Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 1.39 KB

README.md

File metadata and controls

40 lines (35 loc) · 1.39 KB

ADBox Project

Welcome to my new adbox (Anonymous disscusion box) project.

Quick Start

  1. dfx installed to your local machine, making sure you can deploy canister to your local machine.

  2. flutter installed, and use flutter doctor -v make sure everything works

  3. flutter pub get before running this example.

  4. If you want to use MacOS to debug, make sure macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements have content below xml ... com.apple.security.network.client

  5. Deploy canister use dfx deploy, the ADBox canister will be running on your local replica. Make sure you put the ADBoxCanister canister id inside .dfx/local/canister_ids.json to your main.dart, the json like this: json { "__Candid_UI": { "local": "x2dwq-7aaaa-aaaaa-aaaxq-cai" }, "adbox_backend": { "local": "x5cqe-syaaa-aaaaa-aaaxa-cai" } }

  6. inside main.dart, you should change settings with canisterId to your actual id. dart // initialize agent, change canister id here: (lib/adbox_canister.dart) _agentFactory ??= await AgentFactory.createAgent( canisterId: newCanisterId ?? (isMainnet ? "ffy5o-bqaaa-aaaag-abphq-cai" : "br5f7-7uaaa-aaaaa-qaaca-cai"), );

  7. start bash flutter run