BruceWangyq / Fanclub-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fanclub

This is a demo project integrated with CyberConnect where you can follow a specific address and mint an membership NFT by becoming of a "fan" of the target address. Date fetched from cyberconnect API.

Features

This app includes two features:

1. Follow/unfollow

The app allows the current logged in user to follow/unfollow a specific address.

2. Claim a membership NFT

The app allows the user to claim a membership NFT (ERC1155 Token) as long as the user followed the target address, and the user didn't have the same NFT.

You can check the memberhsip NFT collection from opensea testnet.


Getting Started

First, run the development server:

npm install
# then
npm run dev

Open http://localhost:3000 with your browser to see the result.

Second, create .env.development file.

NEXT_PUBLIC_PRIVATE_KEY=
NEXT_PUBLIC_ALCHEMY_API_URL=

Meanwhile, we also need to run the local server for this app which you can clone from the Fanclub-Server.

You need to open another IDE, run the server:

npm install
# then
node index.js

Open http://localhost:5000 with your browser to see the result.

Please leave the http://localhost:5000 window open while running the applicaiton.

Cyberconnect

About


Languages

Language:TypeScript 90.4%Language:CSS 8.1%Language:JavaScript 1.5%