template_assets
v0.0.0
Published
 [](https://github.com/dfinity/examples/actions?query=workflow%3Amotoko-superheroes
Maintainers
Readme
Superheroes
This example demonstrates how to build a CRUD application on the Internet Computer using Motoko and React.
Prerequisites
Verify the following before running this demo:
You have downloaded and installed Node.js.
You have downloaded and installed the DFINITY Canister SDK.
You have stopped any Internet Computer or other network process that would create a port conflict on 8000.
Run for FE
Build your front-end.
npm install
npm startRun for FE, Motoko
Start a local internet computer.
dfx startOpen a new terminal window.
Reserve an identifier for your canister.
dfx canister create --allBuild your front-end.
npm installBuild your canister.
dfx build superheroesDeploy your canister.
dfx canister install superheroes --argument="(principal "$(dfx identity get-principal)")"
```text
npm start:devTake note of the URL at which the canister is accessible.
echo "http://localhost:8000/?canisterId=$(dfx canister id www)"Open the aforementioned URL in your web browser.
