Welcome to your new ic_quickstart_actor_model project and to the internet computer development community. By default, creating a new project adds this README and some template files to your project directory. You can edit these template files to customize your project and to include your own code to speed up the development cycle.
To get started, you might want to explore the project directory structure and the default configuration file. Working with this project in your development environment will not affect any production deployment or identity tokens.
To learn more before you start working with ic_quickstart_actor_model, see the following documentation available online:
- Quick Start
- SDK Developer Tools
- Rust Canister Devlopment Guide
- ic-cdk
- ic-cdk-macros
- Candid Introduction
- JavaScript API Reference
If you want to start working on your project right away, you might want to try the following commands:
cd ic_quickstart_actor_model/
dfx help
dfx config --help
If you want to test your project locally, you can use the following commands:
# Starts the replica, running in the background
dfx start --background
# Deploys your canisters to the replica and generates your candid interface
dfx deploy
After the canister is deployed, we need to load the canister's WASM binary so that the canister can spawn new canisters. Depending on your dfx settings and previous projects ran, you might need to alter a canister_id in this step.
# go to the wasm_loader folder
cd src/wasm_loader
chmod +x post_deploy.sh
cat post_deploy.sh
# check that the 2'nd parameter, the canister_id matches the canister_id from the output of "dfx deploy" in a previous step. If they don't match, edit this file, and continue
./post_deploy.sh
If you get a response: true
the wasm was installed correctly.
Once the job completes, your application will be available at http://localhost:8000?canisterId={asset_canister_id}
.
sh: 1: webpack: not found
npm install --save-dev webpack