Skip to content

joselvelez/article_nft_punchcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Article NFT Punchcard Concept This project is to demonstrate the concept of using NFTs as punch cards to purchase content. I setup this fake news app with fake articles to demonstrate. All of the articles are locked behind a paywall. To access an article, you must connect your wallet and mint a punchcard.

Once a punchcard is minted, you can unlock individual articles. Each article that is unlocked is added to a list of articles you have access to and is stored on the blockchain. A punchard is currently configured to have 10 punches loaded by default, but it can be changed in the front end.

The cost of each punchcard, however, is determined onchain and stored in the contract. The contract owner can change the price via an available call. This is not meant to be a fully functioning application (I did this as quickly as I could over a weekend) and there are lots more optimizations and features that could be added.

This is the first web3 application I have built on my own from scratch and I'm very excited to share it. I hope others might find it useful in their learning process. This was built with React and Tailwind CSS.

About

Demonstrate the concept of using an NFT 'punchcard' to unlock content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published