Build and Deploy: TWITTER clone with React, Tailwind, Next, Prisma, Mongo, NextAuth & Vercel (2023)

  Рет қаралды 241,245

Code With Antonio

Code With Antonio

Күн бұрын

Пікірлер: 483
@codewithantonio
@codewithantonio Жыл бұрын
Some of you have requested a Patreon, so I made one: www.patreon.com/CodeWithAntonio If you get stuck on any part of the tutorial, feel free to pop the question in the Discord channel where I will gladly help you! discord.gg/SPEBvAz4Vd
@uzairhaider1016
@uzairhaider1016 Жыл бұрын
I am using redux toolkit instead of zustand, as far as I know there should not be an issue. but still, will there be an issue if I do that?? the reason of using RTK is to prevent me from copying your code. for now I have successfully triggered modal(s) visibility.
@code_028
@code_028 Жыл бұрын
Znao sam da si nas brate, inace svaka ti cast na ovako lepom videu
@codewithantonio
@codewithantonio Жыл бұрын
@@code_028 hvala puno :) Pozdrav iz Rijeke
@codewithantonio
@codewithantonio Жыл бұрын
Want to get mentored by me? Apply at www.codewithantonio.com/mentorship If you are having problems with "Edit" / "Follow" functionality throwing "Not Signed In" error, It is because you have a newer version of Next & NextAuth, a small modification is needed (you can find it in the github repostory). Here are the steps: 1. Your [...nextauth].ts file should export authOptions separately 2. Your serverAuth.ts file should use getServerSession(req, res, authOptions) instead of getSession({req}) 3. Modify serverAuth(req) to serverAuth(req, res) everytwhere in your code. 4. Logout, shutdown the app, login again, everything should work ❤
@GauravSharma-os6sb
@GauravSharma-os6sb Жыл бұрын
I just request you please put this in your description of this video as I spent 1 hour of debugging then I started looking into comments.
@codewithantonio
@codewithantonio Жыл бұрын
@@GauravSharma-os6sb Ah sorry man, will put in the description as well!
@MasumHasanbd
@MasumHasanbd Жыл бұрын
Hey Antonio, I even clone your git repo and run it in my local machine connecting my DB but still getting 'Not Signed In' issue. Do you have any idea about it?
@Rhidayah
@Rhidayah Жыл бұрын
Alright
@kunal_g
@kunal_g Жыл бұрын
@@MasumHasanbd did u install all dependencies after cloning
@Andrew-Tsegaye
@Andrew-Tsegaye Жыл бұрын
Wow, I must say that I am thoroughly impressed by your ambitious goal of reaching one million subscribers within the next two months! Your unwavering dedication and hard work are truly inspiring, and it is an honor to be a part of your journey. Your content is top-notch, and I believe that your unique approach and passion for what you do set you apart from others in the industry. Keep up the fantastic work, and I have no doubt that you will achieve your goal and much more!
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot for the kind words Andrew!
@guardian1243
@guardian1243 Жыл бұрын
I found your channel a couple months ago, and your content has treated me well! Thanks for the amazing content!
@codewithantonio
@codewithantonio Жыл бұрын
Glad you enjoy it!
@RochCode
@RochCode Жыл бұрын
Hands down the best tutorial I seen on youtube so far. Well written code, no time-wasting details, short video, easy to indurstand. Thank you Antonio !
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot for the nice comment!
@chuckthedev
@chuckthedev Жыл бұрын
Great great job. For those who are having db connection issue on production(500 internal server error when login), one possible reason is that Prisma Client is outdated because it wasn't autogenerated during the build process. In package.json, try to add "prisma generate" to the "build" script: { "scripts": { "build": "next build && prisma generate", // ... } }
@no---on
@no---on Жыл бұрын
I wrote that and it is connected to database now but somehow it never logs in. Can you help me
@yunhanhuang9304
@yunhanhuang9304 Жыл бұрын
I think this is the most awesome twitter clone in youtube. You did a very very good jod.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot!
@buhutimanakal
@buhutimanakal Жыл бұрын
I love these kinds of tutorials. Thank you for sharing your knowledge Antonio❤
@codewithantonio
@codewithantonio Жыл бұрын
Glad you liked it!
@krismatic_
@krismatic_ Жыл бұрын
The value that these kind of videos provide to the upcoming generation cannot be overstated. Thanks so much for making this content.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot, very happy to hear that!
@marioperez6180
@marioperez6180 Жыл бұрын
Honestly keep it up because you cant imagine how this videos help us
@codewithantonio
@codewithantonio Жыл бұрын
Very happy to hear that!
@shokhaway7219
@shokhaway7219 Жыл бұрын
Antonio. My dear hero. Thnk u a lot you post this course for free. I'm really keen on watching your tutorials
@codewithantonio
@codewithantonio Жыл бұрын
You are very welcome!
@bilegtsdf5776
@bilegtsdf5776 Жыл бұрын
bro your tutorials are godly useful love it bby
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot!
@naouejikhalil1599
@naouejikhalil1599 Жыл бұрын
Another amazing project ❤keep going
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@drago3393
@drago3393 Жыл бұрын
Great project! Learned a lot from building this. Thank you Antonio
@codewithantonio
@codewithantonio Жыл бұрын
Happy you like it, thank you for watching!
@gameskyk
@gameskyk Жыл бұрын
Very very cool channel. I learn a lot with your video. Continue,you have all my support !
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot! Glad you like the content!
@ItsMeAru
@ItsMeAru Жыл бұрын
For those who had issues with the unfollow functionality, you need to change how the DELETE method is sent in the hook. It should be passed as a parameter like this: request = () => axios.delete('/api/follow', { params: { userId } }); In the API, it should be noted that when it's not a POST (follow) request, use req.query instead of req.body because Axios treats DELETE and POST differently. This results in: const userId = req.method === 'POST' ? req.body.userId : req.query.userId;
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for this! Not sure what is the cause of it not working in newer versions, but I noticed that people have problems. Using query instead of body seems to work for most!
@ItsMeAru
@ItsMeAru Жыл бұрын
​@@codewithantonio I also don't understand very well why it happens. What I have found is that this way of handling DELETE is by convention; it is possible that in the update they wanted to be more "correct," but I don't know, honestly.
@matheusferreira5600
@matheusferreira5600 Жыл бұрын
Yo brother, I was just stuck on this very same part. It worked properly with these changes you sugested. Thanks a lot for the help.
@matheusferreira5600
@matheusferreira5600 Жыл бұрын
Just a quick reminder for those having the same issue: this applies for both the unfollow and unlike functionalities. Where the delete methods are being called.
@SamuelSxm
@SamuelSxm Жыл бұрын
Thank you man! Have been struggling for hours 😅
@rifatalom5420
@rifatalom5420 Жыл бұрын
Thank you very much for this great one, not only coding its help me also for english fluency. From today I became your fan and a student also. Please make an ecommerce full project also with admin area. Thanks again Sir!!
@codewithantonio
@codewithantonio Жыл бұрын
Very happy to hear that, thank you for your nice words!
@НикитаКуликов-т1х
@НикитаКуликов-т1х Жыл бұрын
Now u r the best for me and ive seen some
@codewithantonio
@codewithantonio Жыл бұрын
Happy to hear that :)
@peymanj3456
@peymanj3456 Жыл бұрын
Thanks Antonio, went through the entire project, very valuable, I have one bug with followers but the rest looks good
@codewithantonio
@codewithantonio Жыл бұрын
Nice work!
@codewithantonio
@codewithantonio Жыл бұрын
you can jump into my discord and explain your followers problem, i think a couple of people have mentioned that in my #twitter-clone channel and fixed it.
@swartex92
@swartex92 Жыл бұрын
Great submission of material! and you explain well
@codewithantonio
@codewithantonio Жыл бұрын
Thank you! Glad you liked it!
@IT-34-VinitPatel
@IT-34-VinitPatel Жыл бұрын
thank you for this video of sharing your knowledge Antonio. I love these kinds of tutorials. Thank you ❤
@codewithantonio
@codewithantonio Жыл бұрын
Happy you like it! Thanks for watching!
@4aka
@4aka Жыл бұрын
Hello from Kyiv, thank you for content man, now me and my friend trying to learn programming, sometimes we have difficulties, and i think it is normal for us, because we are beginners, wish you have a good day, more and more subscribers 😊
@codewithantonio
@codewithantonio Жыл бұрын
Glad to help, keep going!
@Lautaro100ful
@Lautaro100ful Жыл бұрын
Great content! Follower from Argentina!
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot!
@pankajjaiswal4808
@pankajjaiswal4808 Жыл бұрын
Wonderful Antonio! You Rock!! great tutorial 😀😀🙏
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it!!
@TheJordanEffect
@TheJordanEffect Жыл бұрын
we love antonio the best developper tutorials in the hole youtube simple clean code and such a skills master thank you for everything
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like them!
@Shasa.t
@Shasa.t Жыл бұрын
I never used to use usememo and usecallback or understand their importance before, after completing this tutorial, I now instictively reach for usememo and usecallback when they are needed. Thank you for your efforts, helping me grow as a dev
@atabeydemir1656
@atabeydemir1656 Жыл бұрын
I am super excited to watch how Thread developed
@ekalrozhan3432
@ekalrozhan3432 Жыл бұрын
Love stack u use. Very consistent. Please make indeed clone
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for the suggestion!
@mariale4969
@mariale4969 Жыл бұрын
Yess an indeed clone would be great. Havent seen that before. Or a full stack instagram app
@caotichcuc
@caotichcuc Жыл бұрын
Honestly this is the video i was looking for
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it!
@_kadirmetin
@_kadirmetin Жыл бұрын
Thanks for the amazing video Antonio ♥
@codewithantonio
@codewithantonio Жыл бұрын
Happy you like it!
@anuj7286
@anuj7286 Жыл бұрын
Thankyou for providing such a great content!
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for the nice comment!
@razibulhossen9680
@razibulhossen9680 Жыл бұрын
Another amazing project ❤️
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@yalukaiwo
@yalukaiwo Жыл бұрын
A great guide! Helped me figure out how to work with uploading images. Though, in my opinion, instead of typing "data" field in "PostItemProps" interface as "Record", for example, you could use "Post" type, provided by Prisma, (import type {Post} from '@prisma/client') from what I read it's a better practice for typing. P.S. that goes for all Prisma instances UPD: The method described above does not include related fields in its type. In this case, you can do: import {Prisma} from '@prisma/client' type Post = Prisma.PostGetPayload; (in this case, "user" and "comments" are related fields that you want to include. In "PostGetPayload" "Post" is your model name. This way your "Post" type will include all the fields and will be typed properly!
@pulsechainalltheway1845
@pulsechainalltheway1845 4 ай бұрын
Amazing, thank you for sharing your knowledge❤❤❤❤❤❤❤❤❤❤
@Aliimran-zm1yy
@Aliimran-zm1yy Жыл бұрын
Great Work......
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@lucasdamasceno7068
@lucasdamasceno7068 Жыл бұрын
Top content Bro. 🙏
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@PFearr
@PFearr Жыл бұрын
You create this amazing thing you deserve a lot more subs
@fevziatanoglu4977
@fevziatanoglu4977 Жыл бұрын
Great video !!!!!!!!!!
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@PengJin-i8k
@PengJin-i8k Жыл бұрын
Many thanks. 十分感谢。
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like the video!
@fulcrum8221
@fulcrum8221 Жыл бұрын
Great job! Thanks for uploading it! In serverAuth is different the Github repository of the youtube video. In the repository it uses getServerSession and in youtube getSession. I didn't see in terminal the logged in user (although apparently I was) and this didn't let me edit the profile. I copied the serverAuth folder from the repository and it worked.
@jpsingh1187
@jpsingh1187 Жыл бұрын
it didnt work for me
@giannifed
@giannifed Жыл бұрын
Great Tutorial! Thank you
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it!
@faszinationfliegen
@faszinationfliegen Жыл бұрын
Great work! I'd love to see a full stack tutorial for e.g. a food delivery website or any website (like a stylist shop with an appointment system) with the additional administration backend, so for instance that the shop owner can modify the reservation, cancel, confirm etc. :) Keep up with the great work and effort. I'm sure you'll reach 100K subscribers within three months.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot for the nice words and great suggestions!
@Abubakr-triedCoding
@Abubakr-triedCoding Жыл бұрын
@@codewithantonio Can you clone the Wikipedia?
@isaiahsgametube2321
@isaiahsgametube2321 Жыл бұрын
leaned alot thank you
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for watching!
@diegoavendanohernandez9908
@diegoavendanohernandez9908 Жыл бұрын
you are the GOAT man tank you so much
@codewithantonio
@codewithantonio Жыл бұрын
Happy you like it!
@rajumudavatgroup
@rajumudavatgroup Жыл бұрын
Amazing amazing job😊
@tflixtuto64
@tflixtuto64 Жыл бұрын
wow man this is awesome
@codewithantonio
@codewithantonio Жыл бұрын
Happy you like it!
@tflixtuto64
@tflixtuto64 Жыл бұрын
@@codewithantonio I love it and thanks for this free gift
@weejohntee
@weejohntee Жыл бұрын
I am really enjoying these in depth tutorials. I have one question (so far) and it's most likely my inexperience talking but why do you wrap your onClose, onSubmit etc in useCallback?
@princekhunt13579
@princekhunt13579 Жыл бұрын
Great Great Job Amazing Amazing Job
@codewithantonio
@codewithantonio Жыл бұрын
😅 hahaha
@princekhunt13579
@princekhunt13579 Жыл бұрын
@@codewithantonio Hi I am 18 years old. I am mern stack dev. I want to connect with you. Please replay me.
@agustinfodrini
@agustinfodrini Жыл бұрын
Hi Antonio, magnificent video I thoroughly enjoyed it. My only advice would be please zoom a little bit on the code, otherwise it is quite hard to see. Have a nice day and thanks for what you do.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot! I will make sure to have my code clearer in newer tutorials!
@garikmelqonyan6011
@garikmelqonyan6011 Жыл бұрын
Excellent!
@codewithantonio
@codewithantonio Жыл бұрын
Glad you liked it!
@techgyanwithmaan5980
@techgyanwithmaan5980 Жыл бұрын
Hey, awesome video Amazing content Pls make a chat app with next js
@codewithantonio
@codewithantonio Жыл бұрын
Thanks for the idea!
@techgyanwithmaan5980
@techgyanwithmaan5980 Жыл бұрын
@@codewithantonio I am grateful to you
@azikdinal2055
@azikdinal2055 Жыл бұрын
legend's started from here
@casparcheng3013
@casparcheng3013 Жыл бұрын
Hi Antonio, thanks for the great tutorial you provided here totally free to learn, and amazing content with fully functional implemented, you're definitely the most patient coding youtuber here. May I make some suggestion as it's might be better to make vscode font larger to be better viewed, and "Alt+Z" to resize the code within the window. Million appreciate, taught me a lot after following each of your videos.😄
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for the nice comment and a great tip!
@davidhombe2313
@davidhombe2313 Жыл бұрын
Great Job
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Thank you for sharing knowledge for free thank you
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it!
@codiescoderszone1518
@codiescoderszone1518 8 ай бұрын
Amazing Amazing Job
@baudys_dev
@baudys_dev Жыл бұрын
amazing project.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@diegofcn
@diegofcn Жыл бұрын
Thank you so much!
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it!
@minty1752
@minty1752 Жыл бұрын
Awesome tutorials! Never subscribed to anyone quicker! Any chance to see something with a CMS like Strapi or an e-commerce fullstack with Stripe?
@codewithantonio
@codewithantonio Жыл бұрын
Thank you a lot! Yes, an Ecommerce or a SaaS with monthly subscription is in my calendar soon (Stripe)
@january5626
@january5626 Жыл бұрын
​@@codewithantonio waiting that from you😇
@sakibalislam
@sakibalislam Жыл бұрын
Musk wants to know your location! Ha ha, Just kidding, thanks for the outstanding tutorial man, much appreciated ❤️
@codewithantonio
@codewithantonio Жыл бұрын
🤣Thank you!
@Matshiro
@Matshiro Жыл бұрын
I must say after an hour you sounded like you are either stressed or without focus (maybe overworked). Remember to take regular breaks from work :D
@vonderklaas
@vonderklaas Жыл бұрын
Thanks Antonio, very good tutorial indeed. One question, about usage of useCallback. I see you use it mostly everywhere, or there is a rule your are following? I am interested because useMemo & useCallback are still kinda confusing for me. If you could clarify usecases in few words I will appreciate that. Thanks!
@eshw23
@eshw23 Жыл бұрын
A chat app with rooms would be amazing to add to this
@codewithantonio
@codewithantonio Жыл бұрын
Chat app is definitely coming soon!
@codiescoderszone1518
@codiescoderszone1518 8 ай бұрын
Great Great Job
@anchitsinha8821
@anchitsinha8821 Жыл бұрын
Would be great if you could make a video on creating an ecommerce app using nextjs, typescript, tailwind css and stripe api
@codewithantonio
@codewithantonio Жыл бұрын
Thanks a lot for the suggestion, I will add it to the list!
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
😮😮 You did such a great job buddy, Congrats, how to use trpc into this? I like how organized your file structure is
@codewithantonio
@codewithantonio Жыл бұрын
Thank you, I am unsure how to add TRPC at this moment. But I will for sure make a fullstack clone using T3 stack in the future :)
@kohelet910
@kohelet910 Жыл бұрын
Thank you so much
@codewithantonio
@codewithantonio Жыл бұрын
You're most welcome!
@wordbank101
@wordbank101 9 ай бұрын
Thank you so much sir
@AbouAnia
@AbouAnia Жыл бұрын
This man will clone the fecking internet 😂😂. I’ll not be surprised if he can clone complexe apps like Yelp.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you for the compliment!
@williamplays0402
@williamplays0402 Жыл бұрын
Meta must have used this tutorial 😂
@asadmehboob1300
@asadmehboob1300 Жыл бұрын
Wao nice
@codewithantonio
@codewithantonio Жыл бұрын
Thanks!
@whizzie3367
@whizzie3367 Жыл бұрын
Wow, really blisfful, can you make a short on How we can add chat functionality?
@codewithantonio
@codewithantonio Жыл бұрын
Thank you, My next big tutorial will be a chat one, so if you want to you can combine the 2 :)
@mydaily21
@mydaily21 Жыл бұрын
Thanks for tutorial, can u make video only nextjs projects like consume API or other
@GregCollins-ph1nu
@GregCollins-ph1nu Жыл бұрын
Hi Antonio, I really have enjoyed watching your tutorial videos with todays newest coding technology. Can you possibly do a tutorial video on like a Facebook clone because your coding is very clean? I’m looking for a good social media clone where I can share images, videos, comments, likes, etc across a community website that everyone I know is used to using. Keep up the great videos, I’m really enjoying watching them.
@tugo.tmrbtr8410
@tugo.tmrbtr8410 Жыл бұрын
hi antonio, 1:41:23 this part get error which is 400 bad request error, how should i fix it.
@4aka
@4aka Жыл бұрын
I met the same problem
@nicolaichristensen6531
@nicolaichristensen6531 Жыл бұрын
hello, am nicolai, part of the stop mongodb movement, i am here to deliver message from my society of owls ples stop mongodb usage
@SPN5
@SPN5 Жыл бұрын
hy mind if u teach us how to build a chatapp with sidebar and using tailwind too thnx
@codewithantonio
@codewithantonio Жыл бұрын
Hi, I will definitely do a tutorial on a chat app soon :)
@wisjnujudho3152
@wisjnujudho3152 4 ай бұрын
thx for the tutorial. Do you have any tutorial about hashtag ?
@dub161
@dub161 Жыл бұрын
Very impressive tutorial. Can you build also do one fullstack app using sockets? That will be great add on. Thanks.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you! You mean like a real time chat app ? That is defnitely on my list :)
@dub161
@dub161 Жыл бұрын
@@codewithantonio really glad to hear that! Eagerly waiting for it :)))
@sarser_ian
@sarser_ian Жыл бұрын
Hey Antonio ..great work on this project ...what do you think is the tech stack WeChat (including APIs and SDKs) uses but more importantly....how do they make the app modular so that third party businesses can make modular mini-apps onto the WeChat platform?
@codewithantonio
@codewithantonio Жыл бұрын
Hi, thank you for your comment. I will have to explore your question a bit. It is interesting to think about. I assume they have a variety of microservices and SDKs that allow such integration. Perhaps something I could explore as a tutorial in the future!
@murat6018
@murat6018 Жыл бұрын
H, Antionio, thanks for the content! Coul you make the fonts a bit bigger the next time? Cheers!
@codewithantonio
@codewithantonio Жыл бұрын
Glad you like it, Thank you for the feedback!
@niteshprajapat7918
@niteshprajapat7918 Жыл бұрын
awesome ❤❤ Will you do content in JS? I'm not familiar with TS.
@codewithantonio
@codewithantonio Жыл бұрын
Thank you! Of course, but I think you can follow along even with this being TS, as we are not complicating stuff too much
@davyengone
@davyengone Жыл бұрын
Just lean TS! You’ll thank me later
@niteshprajapat7918
@niteshprajapat7918 Жыл бұрын
@@davyengone okay will learn 😁
@niteshprajapat7918
@niteshprajapat7918 Жыл бұрын
@@codewithantonio okay! Thank you Sir 🔥
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
I've been there, Buddy learn TS you won't regret it, It's not as scary as it sounds 😊
@sakariye.maxamed9090
@sakariye.maxamed9090 Жыл бұрын
❤❤❤❤❤❤❤❤❤
@over1498
@over1498 Жыл бұрын
And welcome to Bluesky!
@rohankhurana913
@rohankhurana913 Жыл бұрын
At 3:00, I am getting this error in my system: class NextRequest extends Request { ^ ReferenceError: Request is not defined tried everything... uninstalling node, reinstalling it, used every version (16,18,20) still unable to resolve this issue
@muhsinjonmullajonov9678
@muhsinjonmullajonov9678 Жыл бұрын
Hey man, I even clone your git repo and run it in my local machine connecting my DB but still getting 'Not Signed In' issue. Do you have any idea about it?
@maylens
@maylens Жыл бұрын
is you fix this trouble?
@chences4808
@chences4808 Жыл бұрын
Thank you so much for your content, I really learn a lot from it. Would you consider to make project using Python with Postgres or GraphQL stack?
@none4614
@none4614 Жыл бұрын
Thanks for your video. But, I have a suggestion to upload the image that's using the Cloudinary instead of base 64. And, is it call the server side rendering project bro ?
@codewithantonio
@codewithantonio Жыл бұрын
Hey, thank you so much for the suggestion. I was looking for the simplest way of image upload so that we dont have to use third party apps, but I understand that there are better solutions available. I will take a look into Cloudinary
@baybay1234
@baybay1234 Жыл бұрын
Hi Antonio, I'm curious to learn the reason you prefer to set up a separate API file (current) to fetch the current logged in user instead of accessing the session directly via getServerSession at the Component level? is it because it saves multiple calls to the db or is it something else?
@betsybustan8664
@betsybustan8664 5 ай бұрын
Hello. My save button in the editModal does not work. Did any of you encounter the same problem?
@pulsechainalltheway1845
@pulsechainalltheway1845 4 ай бұрын
Same here and also the same issue with the add to favourite button in the Netflix clone tutorial
@utkarshseth3082
@utkarshseth3082 Жыл бұрын
I am planning to follow this build, can you tell me what are you using for global state management ?
@codewithantonio
@codewithantonio Жыл бұрын
We are using SWR to both fetch and store results from the API, thus SWR is acting like our global store management. For modals we use zustand as global state management
@utkarshseth3082
@utkarshseth3082 Жыл бұрын
@@codewithantonio That's great I also like zustand for global state management.
@rohit_700
@rohit_700 Жыл бұрын
Please make a full stack portfolio using nextjs and tailwind.
@codewithantonio
@codewithantonio Жыл бұрын
Its in my calendar! Thanks for suggestion!
@hellolo3039
@hellolo3039 Жыл бұрын
Now it is X Corp. clone now.
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Hey Antony i am struggling in Next Framework can you please make a tutorial on Next js if you have some time please do consider it. Thank you for sharing knowledge for free.
@codewithantonio
@codewithantonio Жыл бұрын
Hi, I think the best way to learn is through projects, but I will look into separate Next.js Tutorial as well!
@prashlovessamosa
@prashlovessamosa Жыл бұрын
@@codewithantonio thanks for considering will wait for NextJs.
@ErmiaAmirabadi
@ErmiaAmirabadi Жыл бұрын
nice
@codewithantonio
@codewithantonio Жыл бұрын
Thank you!
@ilb7475
@ilb7475 Жыл бұрын
great video!!! but i wanna change about database, so if i wanna add 'title' in the 'Post' in schema file, what should i do ? i justt added 'title' and modified other files i think there is sth i missing .. ., pleas help me thankyou !
@codewithantonio
@codewithantonio Жыл бұрын
you need to run npx prisma generate and npx prisma db push for each schema change! Also make sure to restart your app as well
@MadmanCZECH
@MadmanCZECH Жыл бұрын
Hello. Why dont you use "use client" in for example EditModal 2:35:30? I dont understand it works with useState.
@aaravmishra3487
@aaravmishra3487 Жыл бұрын
Becuase he isn't using app router!
@Matty100
@Matty100 Жыл бұрын
Hey Antonio, I am having an issue with the followers. It doesn't show when I have a followers or let me Unfollow. Is this part of the issue you mentioned or is it a type o? I have no issues with the login. Could you tell me where I should look to fix this error? I re watched the section where you made the follow section and I can't find my error. It shows following but not followers? Thank you for the walk through it has been a lot of fun and great info!
@peyerlee
@peyerlee Жыл бұрын
Thanks! 1:40:11
@shasathuo1966
@shasathuo1966 Жыл бұрын
I hav question, in the follow api when getting the followingId's shouldnt it be updatedFollowingIds = [...(currentUser?.followingIds || [])]
@codewithantonio
@codewithantonio Жыл бұрын
Yes, good catch!
@Cameron-zm6ph
@Cameron-zm6ph Жыл бұрын
Thank you for calling this out! Fixed my issue of only having one follower at a time.
MERN Stack Project: Build a Modern Real Estate Marketplace with react MERN (jwt, redux toolkit)
10:56:55
React & Next js Projects with Sahand
Рет қаралды 745 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
It FINALLY happened
2:45
Matt Pocock
Рет қаралды 37 М.
Create a Todo CRUD API in Node.js (Express & MongoDB)
31:43
Code with Zihad
Рет қаралды 5 М.
Как наука победила религию
17:02
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 964 М.
So, you want to build apps & websites?
9:34
Sajid
Рет қаралды 276 М.
5 Secrets to Stop Stuttering & Speak More Clearly!
12:44
Vinh Giang
Рет қаралды 140 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН