Full Stack Web3 with Lens Protocol, Next.js, and GraphQL - Building a Social Media App

  Рет қаралды 20,136

Nader Dabit

Nader Dabit

Күн бұрын

In this video you'll learn how to use Lens Protocol to build out a basic social media application.
🔗 Lens Protocol Starter - github.com/dabit3/lens-protoc...
🔗 Lens Protocol Subgraph - github.com/protofire/lens-pro...
🔗 Example codebase from tutorial - github.com/dabit3/lens-youtub...
🔗 Lens Protocol Developer Docs - lens.xyz/garden
We'll create a new Next.js app, install our dependencies, then query for user profiles. We'll then update the UI to list profiles and their metadata, and allow users to click on a profile and navigate to an individual profile view to see the user's posts.
Next we'll add a follow button to initialize a transaction in the smart contract to enable "follow" functionality. By the end of the video you should have a good understanding of how to use Lens protocol to build out your own applications.
0:00 - Introduction
3:33 - Project initialization and installing dependencies
4:41 - Creating the first query
12:00 - Rendering profiles in the UI
19:55 - Creating the profile page
37:49 - Following a user
44:44 - Wrapping up

Пікірлер: 55
@Dave-gj7ss
@Dave-gj7ss 2 жыл бұрын
I belive in few years you will be the biggest web3 programming channel with millions of subs❤
@naderdabit
@naderdabit 2 жыл бұрын
Thank you friend 💙🙌
@prasaddpathakful
@prasaddpathakful 2 жыл бұрын
Its criminal that this tutorial has only 4k views. Thanks for the amazing content
@naderdabit
@naderdabit 2 жыл бұрын
thank you 💙
@nayansoni6560
@nayansoni6560 Жыл бұрын
@@naderdabit hii sir how to do basic set up for this tutorial
@fritzuchiwa9084
@fritzuchiwa9084 2 жыл бұрын
You did an extraordinary job with few or lacking documentation. Thanks a lot. This is gold
@mohammadayaansiddiqui7125
@mohammadayaansiddiqui7125 Жыл бұрын
You are great sir, just need to be consistant. You channel is criminally underrated
@waynesletcher7470
@waynesletcher7470 2 жыл бұрын
Thank you. As someone completely new to coding, it's helpful to see you go through this process. You are appreciated.
@SpOOnK3r
@SpOOnK3r 2 жыл бұрын
Man…. You make things look SO easy!! Keep doin whatcha doin champ!
@ekomukanga893
@ekomukanga893 2 жыл бұрын
So happy to discover your channel as a newbie in web3
@al-doori2392
@al-doori2392 Жыл бұрын
Thank you so much, I was really looking for such a tutorial, I am doing my bachelors thesis about building Decentralized social media, I will put a reference to your channel in my thesis. Wish you all the best :)
@rotpertenn
@rotpertenn 2 жыл бұрын
Awesome! I was be able to deeper with Lens Thank you!
@quatchnet
@quatchnet 2 жыл бұрын
Thanks, for a great video. You really showed me how to use lens protocol in my projects.
@deanshaked
@deanshaked Жыл бұрын
Love your web3 content man, you're a legend in a making :)
@Glow0110
@Glow0110 2 жыл бұрын
Really appreciate your videos brother!
@naderdabit
@naderdabit 2 жыл бұрын
And I appreciate you!
@newheba47
@newheba47 2 жыл бұрын
Thanks Nader, That was super helpful
@anazi
@anazi Жыл бұрын
I just found you out of some YT comment. I am happy to see your videos and very glad.
@toiageddes1710
@toiageddes1710 Жыл бұрын
thank you so much! I read the docs and used your video as a guide! so helpfull :)
@eiht88
@eiht88 2 жыл бұрын
Awesome content.🙏🏽 Appreciate it
@suyesh
@suyesh 2 жыл бұрын
This is the awesomest channel in the internet.
@naderdabit
@naderdabit 2 жыл бұрын
💯🙌
@naveenbhargavmallampati7786
@naveenbhargavmallampati7786 2 жыл бұрын
Thanks a lot for the tutorial
@hdhdushsvsyshshshs
@hdhdushsvsyshshshs Жыл бұрын
amazing thank u so much nader, amazing content greetings from manggo team
@TheGraphGermany
@TheGraphGermany 2 жыл бұрын
where do you get all your energy from, traveling the world every day and such awesome support for developers. Have fun tomorrow 🎉 The Graph Day 👨‍🚀
@naderdabit
@naderdabit 2 жыл бұрын
Thank you my friend, I enjoy what I do so that definitely helps 💙
@TheGraphGermany
@TheGraphGermany 2 жыл бұрын
@@naderdabit I hope you enjoy the party The Graph Day 😉🎉 next year we see us.🙏
@juanpasalagua2402
@juanpasalagua2402 Жыл бұрын
So awesome, thanks for taking the time to explain everything in detail, it is very educational. Quick question, and maybe I missed it, but how do you populate the app? Thanks again, Juan
@user-pr5nx7hs4j
@user-pr5nx7hs4j 2 жыл бұрын
thank you for it, great video.
@josemfcheo
@josemfcheo 2 жыл бұрын
This is gold
@zoVargas
@zoVargas 2 жыл бұрын
Thank you.
@yyyd6559
@yyyd6559 Жыл бұрын
Thank brother
@mrchreesaproductions1137
@mrchreesaproductions1137 Жыл бұрын
Don't seem to be able to fetch pictures from ipfs even with the config
@anthonynolanjannotta4688
@anthonynolanjannotta4688 2 жыл бұрын
when it comes to posting a publication, If i want to build a social media app and restrict posting to only owners of an NFT or something. there's nothing stopping anyone from calling post() on the lens hub contract and making the uri look exactly like a post from the restricted group? And if the if it follows the standard it would be displayed in the apps front end, right?
@0xDAEF0F
@0xDAEF0F Жыл бұрын
not all heroes wear capes
@rahulagarwal968
@rahulagarwal968 2 жыл бұрын
Can you please make a video tutorial on nft ticketing or you can say book events dapp !
@jmula1963
@jmula1963 2 жыл бұрын
can i use lens protocol with avalanche / avax instead of L1 ethereum o na?
@mehrdad1068
@mehrdad1068 2 жыл бұрын
Please make tutorial for presale whitelisted nft dapp with merkle tree🤙🚀
@sathyaprakash8081
@sathyaprakash8081 2 жыл бұрын
Please make a video of soft staking NFT
@2irl
@2irl 11 ай бұрын
W
@TheConstantLearnerGuy
@TheConstantLearnerGuy 2 жыл бұрын
:)
@parshvisrivastava4408
@parshvisrivastava4408 2 жыл бұрын
I know I am asking too much but could you also make a video about the backend like if we want to modify few functionality? And how to handle that.
@toiageddes1710
@toiageddes1710 Жыл бұрын
I want to ask you! you are following without having an account?
@justkaz7104
@justkaz7104 Жыл бұрын
690
@powerfulcreations
@powerfulcreations Жыл бұрын
I have lost interest in making a social media network!
@ashleylarrieux4175
@ashleylarrieux4175 2 жыл бұрын
Hey Folks I am hoping to get some feedback I am currently getting this error, but sounds like it should have been accounted for Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'url') Source pages\index.js (32:52) @ eval 30 | profile.picture ? ( 31 | 32 | src={profile.picture.original.url} | ^ 33 | width="60px" 34 | height="60px" 35 | /> Call Stack Home
@ashleylarrieux4175
@ashleylarrieux4175 2 жыл бұрын
actual arrow is pointing on the url section
@ashleylarrieux4175
@ashleylarrieux4175 2 жыл бұрын
return ( { profiles.map((profile, index) => ( { profile.picture ? ( ) : ( ) } {profile.handle} {profile.bio} )) } )
@ai_sculptor
@ai_sculptor 2 жыл бұрын
I m getting the same error actually, any fix??
@grungecoders
@grungecoders 2 жыл бұрын
Apparently some of the profiles have NFT images as their profile pictures that is why we have to take it into consideration. Moreover, there is an issue with Image from next, that is why I have changed it to regular img tag and it worked. Below you can find the temporary workaround
@jdubhman
@jdubhman Жыл бұрын
In my case I found adding the url 'cf-ipfs.com' to the next.config.js inside the domains array fixed a similar issue with the lens protocol frontend repo, originally when clicking explore profiles was throwing an error for the images.
@leandro1.618
@leandro1.618 Жыл бұрын
The solution for the next.config file is deprecated; images: { domains: ["lens.infura-ipfs.io"], remotePatterns: [ { protocol: "ipfs", hostname: "**", pathname: "**", }, ], },
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4,2 МЛН
IIT Bombay CSE 😍 #shorts #iit #iitbombay
0:11
UnchaAi - Mentorship for JEE NEET by IITians
Рет қаралды 2,8 МЛН
Smart Contract Development with Foundry
34:13
Nader Dabit
Рет қаралды 18 М.
Real Time Latent Consistency Model
0:52
Daniel Pikl
Рет қаралды 1,3 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 552 М.
Why You NEED To Learn FastAPI | Hands On Project
21:15
Travis Media
Рет қаралды 151 М.
37.First Day as a Zombie💀
0:32
Limekey0
Рет қаралды 39 МЛН
Люди были шокированы от увиденного 🤯
0:29
Фильмы I Сериалы
Рет қаралды 2,7 МЛН