Lens Protocol - The ULTIMATE Guide 🌿 // Build A Decentralized Web3 Social Media App!

  Рет қаралды 15,347

Jarrod Watts

Jarrod Watts

Күн бұрын

Learn how to build a decentralized social media application using Lens Protocol, thirdweb Next.js, Tanstack Query, and GraphQL Codegen! Learn everything from what Lens Protocol is and how it works, to building a full-stack web3 application on top of Lens.
🍃 Resources 🍃
- How to create a testnet Lens profile: gateway.ipfscdn.io/ipfs/Qmdjb...
- Lens API Examples Repo: github.com/lens-protocol/api-...
🥫Source Code 🥫
GitHub: github.com/jarrodwatts/lens-c...
Replit: replit.com/@JarrodWatts/lens-...
📙Community Support 📙
My Discord: / discord
thirdweb Discord: / discord
🧰 Tools used in this video 🧰
- Lens Protocol: docs.lens.xyz/
- thirdweb: portal.thirdweb.com/
- Next.js: nextjs.org/
- Tanstack React Query: tanstack.com/query/v4/
- GraphQL Codegen: the-guild.dev/graphql/codegen
🍕 Follow Me 🍕
Twitter: / jarrodwattsdev
Lens: www.lensfrens.xyz/jarrodwatts...
⌚ Timestamps ⌚
0:00 - Introduction
01:52 - What is Lens?
15:08 - How Lens Works
24:22 - The Lens Indexer
30:32 - Frontend Tech Stack
35:26 - Creating a Next.js App
39:05 - Tanstack Query
51:07 - GraphQL Codegen
1:15:37 - Custom Fetcher Function
1:23:42 - Thirdweb
1:36:33 - Sign in with Lens
2:01:47 - Persisting Auth State
2:19:22 - Authenticated API Requests
2:29:41 - Lens User Profiles
2:45:10 - Debugging Auth Setup
2:54:28 - Tanstack Query Invalidation
2:59:25 - Feed Page
3:23:27 - Profile Page
3:55:30 - Header Component
4:02:45 - EIP712, Broadcaster & Dispatcher
4:16:09 - Following Users
4:45:09 - Creating Posts
5:23:15 - Deploying to Vercel
5:25:12 - Outro - Subscribe!
🏫 Video Summary 🏫
This video covers everything from what Lens is to how to deploy a full-stack robust web3 application to production. The Lens Protocol is a set of smart contracts deployed to the Polygon blockchain that provide a decentralized social graph.
With Lens, developers can quickly build decentralized applications (dApps) that leverage this social graph to create a variety of social media functionality, including user profiles, follow relationships, and content sharing.
By the end of this tutorial, you'll have a deep understanding of how to use the Lens Protocol to build decentralized social media applications, and be well-equipped to deploy your own application to production.

Пікірлер: 56
@jingli9232
@jingli9232 Жыл бұрын
OMG, you're awesome!! will pull an all-nighter to finish this one, big shout out from China
@JarrodWatts
@JarrodWatts Жыл бұрын
Thank you! Hope you enjoy it :)
@shrirambalaji2915
@shrirambalaji2915 Жыл бұрын
Jarrod, I want to express my gratitude for the excellent work you've done. Your efforts are truly appreciated.
@andrey9731
@andrey9731 Жыл бұрын
Thanks a lot, Jarrod. So much new knowledge and fun from a single video👷‍♂
@cialoneCodes
@cialoneCodes 6 ай бұрын
Great one - very informative. Excellent Tutorial
@manujasan9176
@manujasan9176 Жыл бұрын
Hey Jarrod, I donno if you're gonna read this but just got to be straight with you. I have my senior yr major project submission in like 15 hours and we're making a web3 social. I was stuck with lens ( had done a bit of the UI for our app ) and finding this is a life saver.
@Abhishek-jv7oe
@Abhishek-jv7oe 2 ай бұрын
hi can you help me ?
@joseph5058
@joseph5058 Жыл бұрын
Thank You Jarrod
@JarrodWatts
@JarrodWatts Жыл бұрын
Thank you Joseph!
@NewMillions
@NewMillions Жыл бұрын
Wonderful practice with clear explanation. Thanks for sharing 😍. Could you share an extension you used during that project?
@bendevweb89
@bendevweb89 Жыл бұрын
I discovered your channel and subscribed recently. This is the first of your projects that I follow and I found it really good and well explained! 👏 I wanted to know if it would be possible in a future project that you integrate the deployment part on Vercel for example. To also be able to learn and master the deployment of Dapp on the web. Thanks
@JarrodWatts
@JarrodWatts Жыл бұрын
Thanks Ben! I briefly use the Vercel CLI at the very end of this video to ship our project!
@justinhooker5249
@justinhooker5249 Жыл бұрын
Amazing content! I really appreciate the thorough explanation of concepts and associated tech. One note, I believe Lens deploys a subgraph to The Graph as its indexing solution for its API but I could definitely be wrong there.
@justinhooker5249
@justinhooker5249 Жыл бұрын
Quick question - what were the challenges with using the generated query for useGeneratedChallenge? It was hard for me to follow why we made a custom function here.
@harrishselvarajah3636
@harrishselvarajah3636 Жыл бұрын
Awesome Video!! Would be great if you could do a video on how LENS handles authentication.
@btc_only
@btc_only Жыл бұрын
Do you have any important setup updates that you applied to Chainblog like the Context? Thanks
@martafattori953
@martafattori953 Жыл бұрын
Hey! Very interesting tutorial. Thanks for sharing. I noticed you can't create / mint new profiles. Actually the Lens api-example graphql query on their github for creating new profiles doesn't work. Do you have any resource on that?
@rayyan21d
@rayyan21d 2 күн бұрын
This is crazy content
@kithkui
@kithkui Жыл бұрын
Hello Jarrod, this comes very handy today, as yesterday I was doing research into Lens and trying to start building with it. I have a few questions before I embark on the journey of this amazing tutorial: - What are the requirements for this tutorial? - Do I need to have a Lens claimed handle? - Who are the potential users from the app that I'll build? Can I onboard anyone on the internet or they need to have certain requirements? Thank you for creating this and helping us move a step closer towards something awesome.
@JarrodWatts
@JarrodWatts Жыл бұрын
Happy to answer your questions! - You'll need a basic dev set up (npm, node js, etc.) - There's a guide in the description on how to use the test net if you don't have a Lens profile on mainnet just yet - You can onboard anyone that has a Lens profile; but this video is designed to set you up for success building any kind of project on Lens
@kithkui
@kithkui Жыл бұрын
@@JarrodWatts Thank you. I'll check this out and explore what comes.
@dereksantossidi6850
@dereksantossidi6850 3 ай бұрын
The super Mario brawl music xD
@varunsharma7706
@varunsharma7706 Жыл бұрын
Hey jarrod, I am not able to upload any kind of media to my post. What should I do?
@Sam-bw9ch
@Sam-bw9ch Жыл бұрын
Is the lens testnet profile site not working? Can't seem to get a testnet profile.
@thurendous
@thurendous Жыл бұрын
awesome!! wanted to watch this and it came out
@JarrodWatts
@JarrodWatts Жыл бұрын
Awesome :) seems like the HD version is still processing atm
@tanmaysrivastava849
@tanmaysrivastava849 Жыл бұрын
on changing it to test network, the profile button asks to switch network. Does anyone know how to fix this?
@abbaskhan2017
@abbaskhan2017 Жыл бұрын
This ❤
@duellinks2891
@duellinks2891 Жыл бұрын
Wait so how does the content get moderated on lens?
@muatasimahmed2343
@muatasimahmed2343 Жыл бұрын
Prerequisites for this course ? Please 🥺
@user-np2fd4kl5p
@user-np2fd4kl5p 11 күн бұрын
I am lost in the schema part for codegen. Can someone help?
@jingli9232
@jingli9232 Жыл бұрын
how about useSWR versus React Query? It seems to be a more adopted way to deal with data
@JarrodWatts
@JarrodWatts Жыл бұрын
I think useSWR and React Query are pretty similar solutions - I've personally been loving React query recently as recommended by a few other creators that I follow like T3.gg!
@peacefulcandlestix3309
@peacefulcandlestix3309 Жыл бұрын
how do i get a text editor that looks like this? in 37:00
@ryanh8764
@ryanh8764 Жыл бұрын
wow
@motunks
@motunks Жыл бұрын
Now you have me all hyped up about Lens and want to try it. I wish i can get a Lens handle on mainnet. Just tried to create an account but it says my wallet is not Whitelisted. how to get a handle please?
@JarrodWatts
@JarrodWatts Жыл бұрын
You can use the test net if you don’t have a handle on mainnet (guide in the description)
@Kunal-jp8tn
@Kunal-jp8tn Жыл бұрын
For me it says, that Property 'signTypedData' does not exist on type 'UserWallet'. I can't use the sdk.wallet.signTypedData function. What should I do 🤔🤔🤔 ?
@JarrodWatts
@JarrodWatts Жыл бұрын
Hey Kunal- try updating the thirdweb SDK to the latest version - jump into our discord if you need further help!
@Kunal-jp8tn
@Kunal-jp8tn Жыл бұрын
@@JarrodWatts Thank you so much. Great tutorial !
@tanmayagrawal7256
@tanmayagrawal7256 Жыл бұрын
Any possibilities of Airdrop ?
@JarrodWatts
@JarrodWatts Жыл бұрын
Nope, there’s a guide on how to get a profile on the test network if you are interested
@MrLuiscarbajal
@MrLuiscarbajal Жыл бұрын
what is the auto complete plugin at 46:26? kzbin.info/www/bejne/m2LQgaB6h7qIeMU
@SynapseNervosa
@SynapseNervosa Жыл бұрын
github co-pilot
@muatasimahmed2343
@muatasimahmed2343 Жыл бұрын
I want you to make a paid course
@joseph5058
@joseph5058 Жыл бұрын
But why is the quality low? 😭😭😭
@JarrodWatts
@JarrodWatts Жыл бұрын
HD still processing! Will be full quality in a few hours from now, sorry about that!
@JarrodWatts
@JarrodWatts Жыл бұрын
I'll unlist it for now until the HD is processed by KZbin! 😬
@joseph5058
@joseph5058 Жыл бұрын
@@JarrodWatts thanks
@JarrodWatts
@JarrodWatts Жыл бұрын
4K available now! 🥳
@JustThink2000
@JustThink2000 Жыл бұрын
The music is too loud during the first minute or so 🤦🏾‍♀️
@JarrodWatts
@JarrodWatts Жыл бұрын
Thanks for letting me know, I’ll lower it next time
@climate-moneymakingcampaig305
@climate-moneymakingcampaig305 Жыл бұрын
I would appreciate u if throw out whatever it is in ur mouth Pls make video for non-australian ppl so that the whole world uses not only australians that understand that accent very well If not all fine, i get my info somewhere else no pressure
How To Become A Blockchain Developer In 2023?
18:05
EatTheBlocks
Рет қаралды 121 М.
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 52 МЛН
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 51 МЛН
A Beginner's Guide to Zero Knowledge Proofs (ZK Proofs Explained)
19:19
Next.js App Router Caching: Explained!
25:22
Vercel
Рет қаралды 78 М.
BTC Ordinals Recursive Inscriptions Visually Explained
14:20
BigWise Crypto
Рет қаралды 1,7 М.
Making Changes to a Remote Project | GitHub Tutorial Part 2
8:43
How to MASTER Javascript FAST in 2023
12:49
Internet Made Coder
Рет қаралды 332 М.
Decentralized Social Media: Will It REPLACE Twitter?
7:27
CoinGecko
Рет қаралды 11 М.
Master Ethers.js for Blockchain Step-by-Step [Full Course]
1:25:36
Dapp University
Рет қаралды 106 М.
What Is Polygon zkEVM? The ULTIMATE Developers Guide!
1:11:13
Jarrod Watts
Рет қаралды 3,2 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 3,2 МЛН
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Power up all cell phones.
0:17
JL FUNNY SHORTS
Рет қаралды 50 МЛН