BlockLoyalty is a customer loyalty card DApp (Decentralized Application) built on the Ethereum blockchain using smart contracts. Owners can assign loyalty cards to customers and give them a stamp per purchase. On the tenth visit, the customer can redeem it for a free item just like traditional paper loyalty cards.
There are a few things that need to be set up to have it running.
https://www.trufflesuite.com/ganache
https://www.trufflesuite.com/truffle
npm install
truffle compile
truffle migrate
npm run start