.NET 8 .🚀🔥: Building a Real-Time Chat App with .NET SignalR and React A Step by Step Tutorial

  Рет қаралды 56,159

Mohamad Lawand

Mohamad Lawand

Күн бұрын

Welcome to our in-depth tutorial where we dive into the exciting world of real-time applications! In this video, we're going to guide you step-by-step through the process of building a cutting-edge real-time chat application using .NET SignalR and React.
What you'll learn:
Introduction to Real-Time Web Technologies: Understand the basics of real-time web communication and the role of WebSockets.
Setting Up the Environment: Walkthrough of setting up your development environment with .NET and Node.js.
Creating the Backend with .NET SignalR: Learn how to build a robust and scalable backend using the powerful SignalR library in .NET.
Designing the Frontend with React: Step-by-step guidance on creating a sleek and responsive user interface using React.
Integrating SignalR with React: Explore how to seamlessly integrate your backend and frontend for real-time data exchange.
Who is this for?
This tutorial is perfect for developers who are interested in building real-time applications. Whether you're a beginner in .NET and React or looking to expand your skill set, this video will provide valuable insights and hands-on experience.
Key Takeaways:
Build a fully functional real-time chat application.
Understand the integration of .NET SignalR and React.
Gain practical knowledge in real-time web communication.
Support me on Patreon to access the source code:
/ mohamadlawand
Base App: • .NET 7 💥 - ASP.NET C...
Let us connect:
🌍 My website - mohamadlawand.com
📸 Instagram - / mohamadlawand087
🐦 Twitter - / moe23
♯ Github - github.com/moh...
🎫 LinkedIn - / mlawand
💥 LinkTree - linktr.ee/moha...
Discord - / discord
Gear I use (affiliate link): amzn.to/3EbT8Jw
Support my work:
/ mohamadlawand
www.buymeacoff...
Hire Me:
transactions.s...
WHO AM I:
I'm Mohamad, a Enterprise Architect working in Manchester, UK. I make videos about web, cloud, desktop and mobile development.
GET IN TOUCH:
If you’d like to talk, I’d love to hear from you. Tweeting @moe23 directly will be the quickest way to get a response, but if your question is very long, feel free to email me at hello@mohamadlawand.com.
#dotnet #websocket #react

Пікірлер: 55
@Evan-fi4lj
@Evan-fi4lj 10 ай бұрын
I don't understand how when you join the chat room at 51:11 the message is displayed in the component. You only call setMessages inside the "ReceiveSpecificMessage" callback you defined in App.js, but we're not calling that yet, so how is the messages state getting updated? I had to add a setMessages call in the "JoinSpecificChatroom" callback so that it would add the join message to the messages state, it looks like you're just console logging.
@RawFatGod
@RawFatGod 5 ай бұрын
Same, I'm so confused on that lol.
@mahmoudswilam7969
@mahmoudswilam7969 2 ай бұрын
conn.on("JoinSpecificChatRoom",(username , msg) =>{ setMessages(messages => [...messages,{username,msg}]); console.log("msg: " , msg) });
@arestlessmindband
@arestlessmindband 2 ай бұрын
The format of the string was also changed. I suspect were some updates that occured off camera
@JuanCamba81
@JuanCamba81 Ай бұрын
change MessageContainer to this: export const MessageContainer = ({ messages }) => { return ( {messages.map((message, index) => ( {message.username}: {message.msg} ))} ); };
@CodeWithMamad
@CodeWithMamad 10 ай бұрын
Thank you for making this video, despite having a headache. 🙏
@mumk
@mumk 10 ай бұрын
Tested out with Mvc front end but not React and it worked flawlessly, thanks for the tutorial!
@mutiullahyousfani1456
@mutiullahyousfani1456 6 ай бұрын
i want to build this using mvc how can i ?
@csabagyarmathy6386
@csabagyarmathy6386 Жыл бұрын
Once again Muhamad to the rescue, it's like you're reading the assignments I need to do for my uni. You've helped me through all of them, and hopefully future students will also stumble upon your channel! Cheers 🍻
@Evan-fi4lj
@Evan-fi4lj 10 ай бұрын
Also not sure why you're creating an entire table per message. Posting the final code would be helpful so we can see what's going on without having to search back through the video
@RawFatGod
@RawFatGod 5 ай бұрын
I'm kinda confused on the 42:00 - 50:00 mark. Where is the SendMessage method being called?
@raymonkv4812
@raymonkv4812 11 ай бұрын
Hello dear Mohammad. Thank you for the excellent training. Please deploy this project on iis or any web service that is better so that we can use the software from any device that connects to our computer in the local network. Thanks again for your wonderful tutorial
@mumk
@mumk 10 ай бұрын
Do we need to install that Nuget package for SignalR? It seems like its for .NET Framework. SignalR is built in for .NET 8
@LauPlace
@LauPlace 11 ай бұрын
Thanks for the content, really nice example, it's also nice to see the real time errors, to be able to know how to solve them
@mahmoudswilam7969
@mahmoudswilam7969 2 ай бұрын
Awesome
@lefterissakellaris9903
@lefterissakellaris9903 6 ай бұрын
newly subscribed and as it seems from the content a new fan!Great work!
@DMC3586
@DMC3586 7 ай бұрын
Hey Mohamad. Amazing tutorial. However at 50:54 I didn't understand how you fixed the error.
@ozaiproduction3450
@ozaiproduction3450 3 ай бұрын
const[messages, setMessages] = useState([]); this fixed the error I had with the map error
@yashjoshi4946
@yashjoshi4946 5 ай бұрын
Hey Great work i just wanted to know what extension are you using to be able to tell if it is a method or arg1 or arg2 at 18:34
@sasukee0371
@sasukee0371 3 ай бұрын
i get disconnected after 45 minutes from the signalr server is there any way to prevent that from happening
@cfryerdev
@cfryerdev 11 ай бұрын
Nice work, would be great to post the github repo too.
@kritiverma2495
@kritiverma2495 7 ай бұрын
can you please make a video on how to store these messages in the database.
@kek_1459
@kek_1459 Жыл бұрын
Will it be adding a database to this application?
@АлексейМаксимов-ш9п
@АлексейМаксимов-ш9п 7 ай бұрын
Brilliant, thanks man!
@MohamadLawand
@MohamadLawand 7 ай бұрын
No problem!
@SaiReddySoftwareSolutions
@SaiReddySoftwareSolutions Ай бұрын
could you give me the source code? it was helpful and easy to know what was happening in the background.
@DrissElMEDAGHRIElALAOUI
@DrissElMEDAGHRIElALAOUI 7 ай бұрын
Newly subscribed, Thanks mate.
@MohamadLawand
@MohamadLawand 7 ай бұрын
Awesome, thank you!
@kek_1459
@kek_1459 Жыл бұрын
Thank you very much for your work!
@Jameshiri
@Jameshiri Жыл бұрын
Hi, thankyou for creating this video, i implemented the video. Can you create a video on Notifications? React and .NET Signalr, it would be great.
@olimjontajiev1943
@olimjontajiev1943 7 ай бұрын
thank you brother
@prashlovessamosa
@prashlovessamosa 7 ай бұрын
Thanks very helpful
@jos6115
@jos6115 Жыл бұрын
Thank you! Can I find the code somewhere?
@shadmansudipto7287
@shadmansudipto7287 10 ай бұрын
Please provide the code as a repository next time.
@bartdiako1
@bartdiako1 10 ай бұрын
Thanks buddy you are awsome!
@marvinbrereton3868
@marvinbrereton3868 3 ай бұрын
I shouldn't have to slow down a video to 0.75 to keep up.
@fierrinho
@fierrinho 6 ай бұрын
thank you
@DungHoangTien-q4i
@DungHoangTien-q4i Жыл бұрын
thank you so much
@----47
@----47 15 күн бұрын
Bro himself don't know what he's doing.
@kailashbehera4378
@kailashbehera4378 Жыл бұрын
Great Tutorials. Can you please make a tutorial on .NET Api with Apache Kafka !
@MohamadLawand
@MohamadLawand Жыл бұрын
It’s in the works ☺️
@estonvirtual7671
@estonvirtual7671 7 ай бұрын
cool
@SajadJalilian
@SajadJalilian Жыл бұрын
I really like to know your opinion about HTMX
@alim.karim.
@alim.karim. Жыл бұрын
Where is the code?
@hpn1427
@hpn1427 11 ай бұрын
He didn't provide it... Also there are parts of the video where he just cuts it off, or code is behind his camera frame, I guess we need to hope that he will provide the code next time and be careful with video editing. Amazing content tho
@jayjorneypua8174
@jayjorneypua8174 8 ай бұрын
where's the source code??
@AO-ko3cd
@AO-ko3cd 4 ай бұрын
ليه بتتكلم بسرعه ممكن تعمل قناه للمتحدثين بالعربيه 😅 خد اللايك 910
@Mouni_MahendraNath
@Mouni_MahendraNath Жыл бұрын
Nice awesome thanks for sharing the amazing content 👍👌🫡👋🤩👏🏻🤝👊🎉, a happy subscriber
.NET 7  💥  - Intro to CQRS and MediatR with ASP.NET Core Web Api
1:06:48
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Building Real-Time Applications With SignalR & .NET 7
12:22
Milan Jovanović
Рет қаралды 105 М.
How to Get a Developer Job - Even in This Economy [Full Course]
3:59:46
freeCodeCamp.org
Рет қаралды 3,4 МЛН
.NET 6 - Message Broker with RabbitMQ 🐰🐰🐰
1:00:14
Mohamad Lawand
Рет қаралды 57 М.
Making A WebSocket Server With .NET 8🧑‍💻
18:43
Alex's Dev Den 👨‍💻
Рет қаралды 18 М.
SignalR - Learn basic fundamentals with .NET Core (.NET 7)
1:33:59
DotNetMastery
Рет қаралды 37 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН