Skip to content

VonAdamo/blog-dapp

Repository files navigation

📝 NFT-Blogg NFT-Blogg is a decentralized blogging platform built on blockchain technology. It allows the contract owner to publish exclusive blog posts, and users can mint NFTs to access and read full posts. Each blog post is represented by a unique NFT, ensuring exclusive access and ownership of content.

🚀 # Features

✍️ Only the contract owner can create and publish blog posts.

🔐 Posts are locked by default—only NFT holders can unlock and read the full content.

🧾 Anyone can view the title and preview of posts, but full access requires minting.

🎨 Each post is represented by an NFT, blending content ownership and access control.

🌐 Deployed on Base Sepolia Testnet.

🛠️ # Tech Stack

Smart Contracts: Solidity, OpenZeppelin

Frontend: Next.js 14 (App Router)

Blockchain Interaction: wagmi v2, viem, RainbowKit

Styling: Tailwind CSS, shadcn/ui

Wallet Support: MetaMask, Coinbase Wallet, WalletConnect (via RainbowKit)

Deployment: Base Sepolia Testnet

Local Metadata Storage: JSON files under public/metadata/

📦 # Installation

Clone the project: git clone https://github.com/yourusername/nft-blogg.git cd nft-blogg

Install dependencies:

npm install

or

yarn install

📲 Usage Start the development server

npm run dev

or

yarn dev

Open http://localhost:3000 to see the app.

🧠 How It Works 👑 Post Creation Only the owner of the smart contract (the deployer) can:

Create new blog posts

Set title, preview text, and full content

Assign a minting price per post

🧑‍💻 User Interaction Users can:

View a list of available blog post previews

Connect their wallet

Mint an NFT for the post they want to read

After minting, access the full post content

🔐 Access Control Access to each post's full content is gated:

✅ If user owns the NFT for that post → content is unlocked

❌ If not → prompt to mint the NFT

🧪 Contract Deployment Deployed on Base Sepolia Testnet Contract Address: 0xd5Ead50b377106252296B1D817E110cCdD27c217

📈 Future Features (optional) Creator dashboard for managing posts

Support for post edits or updates

Social features: likes, comments

IPFS/Arweave support for content storage

DAO integration for community-curated posts

🤝 License MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors