A starter project for DFINITY similar to Create React App:
Start a local network:
dfx start
Then, start the dev server:
npm start
npm run types
Canisters don't have types yet, so they're all declared to be any
.
To test canisters, ensure that a local network is running.
The default testing library's async timeout is 1000ms, which is not long enough for a canister response. 5000ms is recommended for each waitFor
call. The default Jest timeout may also need to be increased.
Follow the steps to create canisters, build, and install:
dfx canister create --all
dfx build
dfx canister install --all