Skip to content

warashibe/nextdapp-dfinity

Repository files navigation

NextDapp / DFINITY Integration

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.

How to run

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.

About

NextDapp / DFINITY Integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published