A demo project for Peymate including frontend(node.js, lit), backend(node.js, express) and ii.
Install dfx first. https://internetcomputer.org/docs/current/developer-docs/getting-started/install
If the specified version is needed, here is the ref. dfx specified version
1) Install dfx with version 0.23.0
DFX_VERSION=0.23.0 sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"
2) Install packages
npm i
3) Start dfx service
dfx start --clean --background
4) Create express canister (Optional, for new or cache-removed project)
dfx canister create express
5) Build frontend
npm run build
6) Deploy/update canister
dfx deploy
Install TON wallet. You can use TONKeeper.https://tonkeeper.com/ Please update #19@src/frontend/index.ts with your wallet address.
Caused by: Failed create canister call. Caused by: Certificate is stale (over 240s). Is the computer's clock synchronized?"
Restart dfx using "dfx stop && dfx start --clean"
Please update #23@src/frontend/index.ts with your local ii canister url