Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.64 KB

File metadata and controls

46 lines (32 loc) · 1.64 KB

Sui dApp Starter Template with Loyalty Points

This dApp was created using @mysten/create-dapp that sets up a basic React Client dApp using the following tools:

For a full guide on how to build this dApp from scratch, visit this guide.


✨ New Feature: Loyalty NFT with Points System

In addition to minting NFTs for loyalty cards, we’ve introduced a Points System:

  • Each Loyalty NFT starts with 0 points.
  • 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.


Deploying your Move code

Install Sui CLI

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