Blockchain-based Loyalty and Rewards Program using Fungible Tokens" is a loyalty and rewards system implemented using blockchain technology. Instead of traditional loyalty programs that might involve physical cards or centralized databases, this approach leverages the security and transparency of blockchain. Fungible tokens are used as the rewards mechanism. Each customer's loyalty and engagement can be tracked on the blockchain, and as they accumulate points or rewards, these are represented as fungible tokens in the blockchain system.
- client
- server -- web3
- git clone the repository
cd
intoclient
folder.- run
yarn
ornpm install
to install the packages. - use
yarn run dev
ornpm run dev
to start the project.
cd
intoserver
folder.- run
yarn
ornpm install
to install the packages. - use
yarn run dev
ornpm run dev
to start the project. - change
CONTRACT_ADMIN_WALLET
inside.env
file
cd
intoserver\web3
folder.- we have solidity smart contracts inside the
web3\contracts
folder and build contracts ready for deployement inside theweb3\build\contracts
cd
intoserver\web3
folder.- install traffle using
npm install -g truffle
. - update RPC URL and PORT inside
truffle-config.js
file.eg: HTTP://127.0.0.1:7545
- open console and run
truffle console
. - compile contract using
compile --all
. - migrate contract to ganache using
migrate --reset
.