This project is provided by the IC-Academy to help you get started with development on the Internet Computer using Svelte, TypeScript and Vite.
The main goal of this repository is to illustrates how to use an Internet Identity for logging in and out of a Svelte application running on the Internet Computer (IC). Additionally, it demonstrates how to make an authenticated call to the backend canister.
The project has the following main features:
A running example can be found
Note to get a clean git repository. A tool called “digit” is used. Make sure you have it installed. If you haven't installed it yet, you can do so using the following command.
Tested on DFX version: 0.20.1
npm install -g degit
Summary of installation steps:
mkdir myapp && cd myapp
npx degit https://github.com/samlinux-development/vc
npm install
dfx start --clean --background
dfx deploy
dfx canister id frontend
Open your browser and use the following URL scheme:
dfx identity use <your-name>
dfx canister create backend --with-cycles 1T --ic
dfx canister create frontend --with-cycles 1T --ic
dfx canister create solidjs --with-cycles 1T --ic
# the local Internet Identity replica should not be used for the mainnet deployment
dfx deploy --network ic