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:
-
recommendProfiles - Get popular profiles
-
getProfiles - Get profiles by passing in an array of
profileIds
-
getPublications - Returns a list of publications based on your request query
-
searchProfiles - Allows a user to search across hashtags on publications or profile handles. This query returns either a Post and Comment or Profile.
-
follow - Follow a user
-
burn - Unfollows a user
-
timeline - Shows a feed of content tailored to a signed in user
-
createSetProfileMetadataTypedData - Allows a user to update the metadata URI for their profile
-
post - Allows a user to publish content
You can view all of the APIs here and contract methods here
You can run this project by following these steps:
- 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
- Run the project
npm run dev
- Open the project in your browser at localhost:3000