Skip to content

zenbitETH/solarpunks

 
 

Repository files navigation

Changelog

Solarpunks

Developed at LFGrow Hackathon 2022 Live Demo

About

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.

Pre-requisite

  • Lens-API latest
  • NodeJs >= 14.x
  • NextJs 12.x
  • Tailwindcss v3.x
  • Solidity latest
  • Moralis SDK
  • EthersJs v5.x
  • Apollo client v3.x
  • Metamask

Backend service

Contracts

📚 Lens Hub
📚 Punk Cities

TLDR;

Dev Environemnt

Working with Polygon Mumbai testnet contracts (further update to deploy your own contracts)

  1. Install Metamask

  2. Register accounts in Moralis and NFT.storage

  3. Make .env.local

touch .env.local

add environment variable

NEXT_PUBLIC_NFT_TOKEN="eyJhbGciOi........"
  1. Install dependencies
yarn install
  1. Start developmment
yarn dev
  1. 📱 Open http://localhost:3000 to see the app

Production

Live deployment is made via Github / Vercel integration, as a vercel.app; from master branch.

Open solarpunks.vercel.app

Related to LensAPI integration

  1. Apollo Client

We adapt the Apollo provider to call LensAPI, source.

  1. React hooks

We develop 2 react hooks for orchreshration, when submitting transaction.

Packages

No packages published

Languages

  • JavaScript 98.2%
  • CSS 1.8%