Build a Fullstack CHAT App using MERN (mongo, express, react, node)
In this beginner friendly tutorial, I’m going to show you how to build a fullstack chat app using MERN (mongo, express, react, node). It will be a chat app with a lot of cool features like online indicator, uploads/attachments, auto-scrolling and many others
This chat app tutorial is designed for beginners and will teach you the basics of building a chat system app using MERN and websockets. By the end of this tutorial, you will have a working chat app that you can use for your portfolio. You will also understand how to use websockets, authenticate connections and so on.
Source code:
Timestamps:
00:00:00 - intro
00:02:06 - installing react and tailwind css
00:05:58 - login and register
01:23:10 - chat page
01:30:35 - websockets (authentication)
01:44:43 - showing who is online
02:01:05 - user avatars
02:12:52 - selecting conversation
02:27:32 - sending a message
03:16:58 - auto scroll the conversation window
03:29:23 - fetching history messages from the database
03:41:10 - auto re-connecting
03:49:16 - displaying the messages from the database
03:59:28 - online indicator & showing offline people
04:24:48 - killing old connections
04:34:47 - logout button & showing username of logged in user
04:49:14 - attachments / file upload
05:23:17 - fixing small display bug
05:26:37 - outro
1 view
600
195
1 week ago 00:41:23 1
I Took My Teacher to a Deadly Uninhabited Island To Survive
1 week ago 00:01:28 2
А ТЫ СМОЖЕШЬ 100-РАЗ В ДЕНЬ🫢#спорт #pushup #здоровье #bodybuilding #motivation #fitness #workout
2 weeks ago 00:48:20 1
Lembke - Dopamine Nation and the Age of Digital Drugs | Prof G Conversations
2 weeks ago 00:42:31 3
Secret Door Bookcase made from Pallet Wood and Scrap
3 weeks ago 00:10:32 21
Primitive Technology: Hut burned down, built new one
3 weeks ago 00:00:00 1
Australia Cyclone 2025 | LIVE Cyclone Alfred Landfall | First Cyclone To Hit East Coast In 50 Years
3 weeks ago 00:00:05 1
Economic Growth
3 weeks ago 00:00:05 1
Typhoon USA
3 weeks ago 00:00:07 1
Destructive Weather Warfare
4 weeks ago 00:12:01 168
RTX 5070 Ti vs RTX 4070 Ti Benchmark 💪 Max Settings Gameplay In 10 Games at 4K!
1 month ago 00:11:41 1
I UPGRADED new LEGO minifigures!
1 month ago 00:59:55 1
Énorme Tweet de Trump résumant Tout ce qui se passe-Pape François-Kash Patel:“L’impunité, C’est Fini
1 month ago 00:03:54 16
Primitive Technology: Wood Ash Cement
1 month ago 00:16:14 4
Coffee & Dreams: Uplifting Motivational Music for Resilience & Personal Growth
1 month ago 01:32:50 4
Human Flourishing & The Crime of the Century | The Acceptance of Life Podcast Ep. 03