Node version: v16.14.0 Updated for dfx 0.14.0 and @dfinity packages: 0.14.0
Boilerplate ReactJS/Typescript with authentication to a local II
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
-
Install NPM packages
yarn
-
Start dfx
dfx start
-
Update
.env
with the II canister id eg:Installing code for canister internet_identity, with the canister_id from internet-identity/.dfx/local/canister_ids.json -> local: eg: rwlgt-iiaaa-aaaaa-aaaaa-cai
-
Deploy
dfx deploy
-
Manual Deploy (replaces point 4)
dfx canister create --all
dfx generate
dfx build
dfx canister install --all
Copy front-end canister id from .dfx/local/canister_ids.json and replace in the url below
Navigate to http://<frontend_canister_id>.localhost:8000/
Or navigate to http://localhost:5173 after yarn start
command
Distributed under the MIT License. See LICENSE
for more information.
- $
sudo yarn add tsc -g
- $
yarn install
- $
yarn run build
dfx start --backgroun --clean
- If you already have a dfx running run $
kill -INT $(lsof -t -i :4943)
then re-rundfx start --backgroun --clean
- If you already have a dfx running run $
- $
dfx deploy