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
cdintoclientfolder.- run
yarnornpm installto install the packages. - use
yarn run devornpm run devto start the project.
cdintoserverfolder.- run
yarnornpm installto install the packages. - use
yarn run devornpm run devto start the project. - change
CONTRACT_ADMIN_WALLETinside.envfile
cdintoserver\web3folder.- we have solidity smart contracts inside the
web3\contractsfolder and build contracts ready for deployement inside theweb3\build\contracts
cdintoserver\web3folder.- install traffle using
npm install -g truffle. - update RPC URL and PORT inside
truffle-config.jsfile.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.