hanahem / lens-starter-dapp

A starter dApp for Lens protocol projects

Home Page:https://lens-starter-dapp.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

*️⃣ Lens Starter dApp

Hero


Lens Starter dApp is a repo to be forked/cloned/copied that is a useful starting point to build projects on Lens Protocol.

What this repo includes:

  • Main project layout and structure
  • Various and most used utility functions in
  • A set of most used queries to the Lens API
  • A simple implementation example (auth + profile fetch)
  • Baseline React Context API implementation
  • Some baseline elements for other features

How to use the repo

You can run and test the repo by running:

yarn
yarn dev

Create yourself a .env.local file with the following entries:

NEXT_PUBLIC_IS_MAINNET=
NEXT_PUBLIC_IS_STAGING=
NEXT_PUBLIC_INFURA_SECRET=
NEXT_PUBLIC_INFURA_PID=

Then you can add/remove/keep the queries defined in /graphql and run:

yarn generate

This will run a GraphQL codegen that will generate all needed types + hooks that you can use to query the API.

About

A starter dApp for Lens protocol projects

https://lens-starter-dapp.vercel.app/


Languages

Language:TypeScript 99.5%Language:JavaScript 0.4%Language:CSS 0.1%