This is a working example of @notifi-network/notifi-react package. It aims to demonstrate:
- The usage of Notifi Context
- The usage of
NotifiCardModalcomponent
This example is bootstrapped with
create-next-app.
-
ensure the your Node.js 18 or later (with its corresponding npm)
-
set up the
.env.localfile by copying the.env.local.examplefile 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-reactpackage, checkout the documentation of@notifi-network/notifi-reactMake sure the blockchain network and the wallet setting are correctly configured as per your expectation onpackages/notifi-card-modal-example/src/context/NotifiContextWrapper.tsxFeel free to add more preferred wallets by implementing new case inNtofiContextWrapper.tsx
- Cypress component test