Astro Starter Kit: Basics with Svelte and Internet Computer
Preparations
mkdir myapp && cd myapp
# install ic-mops in case you don't have it yet
npm i -g ic-mops
npx degit https://github.com/samlinux-development/ic-astro-svelte
npm install
dfx start --clean --background
Set adminPrincipal in backend/main.mo
# Get the principal of your local dfx identity
dfx identity use <identity-name> || dfx identity use default
dfx identity get-principal
# replace the adminPrincipal in backend/main.mo with the principal of your local dfx identity
# let adminPrincipal = "yziij-iujbv-ygpuv-q4dzb-aywuv-kz5cw-caeo5-iysan-shdls-nqy5g-aae";
Deploy to local Internet Computer replica
dfx deploy
dfx canister call backend installer
Run local dev-server
npm run dev
Deploy to the Motoko Playground
dfx deploy --playground
dfx canister --network playground call backend installer