This is a working example of @notifi-network/notifi-react
package. It aims to demonstrate:
- The usage of Notifi Context
- The usage of
NotifiCardModal
component
This example is bootstrapped with
create-next-app
.
-
ensure the your Node.js 18 or later (with its corresponding npm)
-
set up the
.env.local
file by copying the.env.local.example
file and fill in the required values
First, clone notifi-sdk-ts
mono repository and install the dependencies:
git clone https://github.com/notifi-network/notifi-sdk-ts.git
npm install
Then, start the development server of @notifi-network/notifi-card-modal-example
using lerna cli tool
npx lerna --scope=@notifi-network/notifi-card-modal-example run dev
🚀 Open http://localhost:3000 with your browser to get started. 🚀
For more detail about the usage of
@notifi-network/notifi-react
package, checkout the documentation of@notifi-network/notifi-react
Make sure the blockchain network and the wallet setting are correctly configured as per your expectation onpackages/notifi-card-modal-example/src/context/NotifiContextWrapper.tsx
Feel free to add more preferred wallets by implementing new case inNtofiContextWrapper.tsx
- Cypress component test