This dApp was created using @mysten/create-dapp that sets up a basic React
Client dApp using the following tools:
- React as the UI framework
- TypeScript for type checking
- Vite for build tooling
- Radix UI for pre-built UI components
- ESLint for linting
@mysten/dapp-kitfor connecting to wallets and loading data- pnpm for package management
For a full guide on how to build this dApp from scratch, visit this guide.
In addition to minting NFTs for loyalty cards, we’ve introduced a Points System:
- Each Loyalty NFT starts with
0points. - Admin can add points to a customer’s NFT.
- Customers can redeem points when needed.
- Points can be viewed directly from the NFT.
This makes the dApp more realistic for loyalty programs, where users can collect and spend points.
Before deploying your move code, ensure that you have installed the Sui CLI. You can follow the Sui installation instruction to get everything set up.
This template uses testnet by default, so we'll need to set up a testnet
environment in the CLI:
sui client new-env --alias testnet --rpc https://fullnode.testnet.sui.io:443
sui client switch --env testnet