- Connect User's Wallet
- Sign With Lens Profile
- Create a Profile - on the testnet, if connected address doesn't already have one
- Create Post (attach
AppID
) - compulsorily create a new post if there are no any post by that user - Display list of posts (filter posts based on
AppID
) - Allow the user to Like/Unlike any posts
- Display a list of Recommend profiles (based on the posts that appear on the home page)
- Follow other users (UnFollow not included 😀)
- Display individual user profile detail page with their stats and posts
-
Clone the repository with
git clone https://github.com/Amitmahato/AU-Lens-Demo-App.git
Prefer SSH
git clone git@github.com:Amitmahato/AU-Lens-Demo-App.git
-
Install dependencies with
npm install
[Recommended, as we used npm while building] oryarn install
[Dependencies version might not match with the ones used by us while building] -
Copy or Rename the
.env.local.example
to.env.local
-
Start the application with
npm run dev
oryarn dev
⚠️ Expect the application to be buggy, as it was built only for demo purpose. If you find some bug simply refresh the page to get it working properly again, when using it for the first time. Optionally, clear the local storage when coming back after some days as the authentication tokens are stored there and not every cases are handled properly 😅.
- The
AppId
that we use to filter posts that were created from our application, feel free to change it and give it someAppId
of your choice to make your app feel like yours - The lens public API endpoint which can be of the testnet or the mainnet.
⚠️ Remember when using the mainnet you must have a lens profile other wise the app will redirect you to Create Profile page, the API for which isn't available publicly, ultimately making the app fail - The URL to polygonscan on mumbai network for letting the user navigate to polygonscan to view their transaction while creating a lens profile. You can change this one as well with the mainnet but it won't be really useful.