This is a CRA app that is created to demo the possibilities of the backend canister.
This canister serves as an example of this code.
To setup the demo application you need to deploy the backend canister and upload the frontend files to it from a local devserver.
- navigate to the backend folder with a CLI
- run
dfx start --clean --background
- run
dfx deploy --no-wallet
- Take note of the
canisterId
that is used
- navigate to the frontend folder with a CLI / open in code editor
- run
npm install
- Change the
canisterId
andhost
accordingly insrc/api/Methods.ts
(yes yes, i should have handled it better) - build the project
npm run build
- start the local server
npm run start
- open the browser on
http://localhost:3000
- upload the files from the
build
folder and thestatic
directory. - if that is done visit
http://rwlgt-iiaaa-aaaaa-aaaaa-cai.localhost:8080/
(canister id could be different if you have other canisters running locally) - Frontend should be running on the canister