This is a starter app to develop a DFINITY dapp with NextDapp framework.
Our motoko smart contract extends the todo example from this DFINITY tutorial.
Import nd/dfx
.
import dfx from "nd/dfx"
Then, use it like below to connect to a DFINITY canister (nxd
) and execute a function (getTodos
).
await dfx("nxd").getTodos()
That's it!
Refer to /pages/index.js for a super simple one page todo app.
git clone https://github.com/warashibe/nextdapp-dfinity.git
cd nextdapp-dfinity
yarn
dfx start --background
dfx deploy
yarn dev
Now your dapp is running at localhost:3000.