Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hanahem/lens-starter-dapp
A starter dApp for Lens protocol projects
https://github.com/hanahem/lens-starter-dapp
Last synced: 10 days ago
JSON representation
A starter dApp for Lens protocol projects
- Host: GitHub
- URL: https://github.com/hanahem/lens-starter-dapp
- Owner: hanahem
- Created: 2022-11-08T12:31:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-08T12:46:20.000Z (about 2 years ago)
- Last Synced: 2024-12-13T16:24:26.038Z (23 days ago)
- Language: TypeScript
- Homepage: https://lens-starter-dapp.vercel.app/
- Size: 571 KB
- Stars: 16
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# \*️⃣ Lens Starter dApp
Lens Starter dApp is a repo to be forked/cloned/copied that is a useful starting point to build projects on [Lens Protocol](https://https://docs.lens.xyz/).
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.