Express Chat App with Node.js & Socket.io

  Рет қаралды 23,980

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 34
@TravinskiyVladislav
@TravinskiyVladislav Жыл бұрын
Ive been watching your video for over a year now... and i will in the future
@programingtales7514
@programingtales7514 Жыл бұрын
One of the best content ever on KZbin! You are very good in that... thank you very much Mr Dave.
@0xtz_
@0xtz_ Жыл бұрын
Was waiting for this 👏🔥
@austinevick
@austinevick Жыл бұрын
This is exactly what I needed in my project. I really appreciate your great style of teaching. Kindly add mongodb for data persistence. Thank you Dave
@kelvinoritsetimeyin8119
@kelvinoritsetimeyin8119 7 ай бұрын
You are done with your project now?
@9dwd
@9dwd Жыл бұрын
ur the best thanks for the consistency, quality and precision in your work
@TSpods
@TSpods Жыл бұрын
Thank you very much for the video, perfectly explained as always, I'm already waiting for the next one 😄
@romylloydcruz3244
@romylloydcruz3244 4 ай бұрын
Hi Dave, I have a question. How do we fully encrypt end to end chat app to secure the messages?
@tetyanagon3342
@tetyanagon3342 Жыл бұрын
TY, Dave! You are my guru!
@KrunalKRG0212
@KrunalKRG0212 9 ай бұрын
Awesome playlist
@ahmadshabaz2724
@ahmadshabaz2724 Жыл бұрын
Sir i watched your vedio html to node.js
@yw3546
@yw3546 Жыл бұрын
Hi Dave, have you heard of N + 1 problem when writing a query? Someone asked me about it but I couldn’t answer. It hit me pretty hard because I realize that there might be lots of such problems that I did not pay attention to, but they’re actually important. It’ll be awesome if you could have a series discussing this kind of knowledge/skills/things to avoid on your way towards senior level?
@nagame859
@nagame859 Жыл бұрын
Hi there! The N+1 problem is a common issue that can occur when fetching data from a database, particularly in the context of Object-Relational Mapping (ORM) tools like Hibernate, SQLAlchemy, or others. Let me explain with a simple example: Imagine you have two related entities: Author and Book, where each author can have multiple books. Now, you want to fetch all authors and their books.N+1 Problem Example:You query the database to fetch all authors.Then, for each author, you query the database again to fetch their books. In this scenario, if you have N authors, you end up executing N+1 queries to the database, where the extra 1 query is for fetching authors. This can lead to a significant performance overhead, especially when dealing with a large number of authors.Solution - Eager Loading:To solve the N+1 problem, you can use eager loading. Eager loading allows you to fetch the related data (books in this case) along with the main query in a single query, reducing the number of database queries. In most ORM frameworks, you would specify eager loading in your query to fetch authors and their associated books in one go.Here's a simple example using SQLAlchemy in Python:from sqlalchemy.orm import joinedload # Fetch authors and their books with eager loading authors = session.query(Author).options(joinedload(Author.books)).all()By using eager loading, you optimize the query and avoid the N+1 problem by minimizing the number of database queries. internally, eager loading uses techniques like JOINS. this is from ChatGPT. I hope you get it.
@shineLouisShine
@shineLouisShine 10 ай бұрын
Cool.. Thank you :)
@MalachiDraven
@MalachiDraven 9 ай бұрын
If I wanted to use SocketIO on a standalone backend server, would I still use Express? Or is Express just for serving the index.html webpage coupled with the NodeJS/Socketio stuff?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 9 ай бұрын
You could have a separate frontend. Express would not need to serve the html. For example, a React app or another framework on the front and your Node.js server on the back.
@saeedkhazalvand4821
@saeedkhazalvand4821 Жыл бұрын
Hello Dave, I have a question : I learned markup , css framework (tailwind,bootstrap) , github , js , ES6 , React Library and Redux toolkit .. but does it need learn Typescript or ECMA .. in advance I forgot to appreciate you for your gold package of react, redux and ... I don know how can be graefull of you .❤❤
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Learning TypeScript is a good idea because it has become an industry expectation.
@Dreamer4777
@Dreamer4777 Жыл бұрын
Thanks a lot
@swananddhere7466
@swananddhere7466 6 күн бұрын
hey for someone who is reading this can someone help me i am listining to server at port 3500 but when i am opening my html file in browser it is opening at port 3000 or 3001 idk why it is happening
@tanaphatlochanat5955
@tanaphatlochanat5955 Жыл бұрын
can I ask, what is vs code theme you use
@VinayakSoni98
@VinayakSoni98 Жыл бұрын
Lets code together ❤
@alexanaderemeka3954
@alexanaderemeka3954 Жыл бұрын
anyone else getting cors error?
@Infinite_Null
@Infinite_Null Жыл бұрын
Just add cors true in Server()
@zunnoorainrafi5985
@zunnoorainrafi5985 Жыл бұрын
0:49 what is the difference between a library and a framework?
@rishadali2866
@rishadali2866 Жыл бұрын
Library is like a collection of code while framework is like a collection of Library like react is a library while jextjd, is a frameo
@ahmad-murery
@ahmad-murery Жыл бұрын
A library is collection of functionalities you can connect to from your code and use it as needed, A frameworks is a higher level code that dictates how your code should be written, so, in short words, you code inside the framework and you collaborate with libraries to achieve your goal. This may not be totally right, but just to make it more digestible.
@zunnoorainrafi5985
@zunnoorainrafi5985 Жыл бұрын
Okay thanks
@Suto_Ko
@Suto_Ko Жыл бұрын
A library is a collection of pre-written code that provides specific functionality, which you can use in your own code. A framework, on the other hand, is a more comprehensive set of tools and libraries that provides a structure for building applications. While you use a library, you typically write the flow of control in your code. In contrast, with a framework, the flow of control is often dictated by the framework itself.
@nazmulalam1982
@nazmulalam1982 Жыл бұрын
Nice boss
@Khomeini_N.S.E
@Khomeini_N.S.E 9 ай бұрын
Chat Activity Detection - Build a Chat App with Socket.io
15:43
Socket.io Introduction - How to Build a Chat App
21:38
Dave Gray
Рет қаралды 43 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 26 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 113 МЛН
Real Time Chat App with Users, Rooms | Node.js, Express, Socket.io
1:00:17
Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners
32:35
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
Building a Chat App - Intro to WebSockets
19:13
Dave Gray
Рет қаралды 51 М.
Build A Realtime Chat Application With Node.js | Socket.io & Next.js
58:31
Learn Socket.io In 30 Minutes
27:27
Web Dev Simplified
Рет қаралды 515 М.
🤯 Express.js 5 is here (since a month already, actually)
9:58