Developed at LFGrow Hackathon 2022 Live Demo
This project uses Profile, Publication, Timeline, Follow, Explore, and NFT functions from Lens API to build a social graph on top of Punk Cities game and let users connect locally through decentralized social networks based on public places and commons minted as NFTs and meet new friends globally.
- Lens-API latest
- NodeJs >= 14.x
- NextJs 12.x
- Tailwindcss v3.x
- Solidity latest
- Moralis SDK
- EthersJs v5.x
- Apollo client v3.x
- Metamask
Working with Polygon Mumbai testnet contracts (further update to deploy your own contracts)
-
Install Metamask
-
Register accounts in Moralis and NFT.storage
-
Make
.env.local
touch .env.local
add environment variable
NEXT_PUBLIC_NFT_TOKEN="eyJhbGciOi........"
- Install dependencies
yarn install
- Start developmment
yarn dev
- 📱 Open http://localhost:3000 to see the app
Live deployment is made via Github / Vercel integration, as a vercel.app; from master branch.
- Apollo Client
We adapt the Apollo provider to call LensAPI, source.
- React hooks
We develop 2 react hooks for orchreshration, when submitting transaction.