Giter VIP home page Giter VIP logo

lens-protocol-frontend's Introduction

Lens Protocol Front End Starter

This is an example of how to build a front-end application on top of Lens Protocol.

The main API calls used in this app are defined in api/index.js:

  1. recommendProfiles - Get popular profiles

  2. getProfiles - Get profiles by passing in an array of profileIds

  3. getPublications - Returns a list of publications based on your request query

  4. searchProfiles - Allows a user to search across hashtags on publications or profile handles. This query returns either a Post and Comment or Profile.

  5. follow - Follow a user

  6. burn - Unfollows a user

  7. timeline - Shows a feed of content tailored to a signed in user

  8. createSetProfileMetadataTypedData - Allows a user to update the metadata URI for their profile

  9. post - Allows a user to publish content

You can view all of the APIs here and contract methods here

Running this project

For this project to run, you must configure the Infura project ID and project secret in a file named .env.local. Check out .example.env.local for guidance.

You can run this project by following these steps:

  1. Clone the repo, change into the directory, and install the dependencies
git clone [email protected]:dabit3/lens-protocol-frontend.git

cd lens-protocol-frontend

npm install

# or

yarn
  1. Run the project
npm run dev
  1. Open the project in your browser at localhost:3000

lens-protocol-frontend's People

Contributors

dabit3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lens-protocol-frontend's Issues

Question about wagmi as a signer

I see that you have wagmi installed but are not using it anywhere. Why is that? FWIW, I had issues using the signer object from wagmi for the contract functions (followUser) in the repo. Have you had any luck with that?

error: missing provider

Error: missing provider (argument="provider", value=undefined, code=INVALID_ARGUMENT, version=providers/5.6.6)

Hey, wondering if you know how to overcome this error?

at ln 33 on index.js (3 other occurrences) involving

const provider = new ethers.providers.Web3Provider(window.ethereum);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.