How to Build a Realtime Web Chat and Deploy it to AWS

In this video, we will build a full-stack serverless chat application with TypeScript, Node.js, React.js & TailwindCSS, and then deploy it to AWS with Serverless Framework. 👍 Subscribe for more cloud and programming tutorials like this:    / @tomasztarnowski4434   Getting Started with AWS Lambda and Serverless Framework (video):    • Getting started with AWS Lambda and Server...   Getting Started with AWS Lambda and Serverless Framework (article): https://blog.tomasztarnowski.com/gett... Working with Global Secondary Indexes (AWS Documentation): https://docs.aws.amazon.com/amazondyn... Links to the code from the video: Backend: https://github.com/ttarnowski/serverl... Frontend: https://github.com/ttarnowski/serverl... Social Media: Twitter:   / t_tarnowski​   Linkedin:   / tomasz-ta...​   GitHub: https://github.com/ttarnowski​ Software used in the video: Visual Studio Code IDE: https://code.visualstudio.com/ Prettier Extension for automatic code formatting: https://marketplace.visualstudio.com/... Thank you for watching and see you soon! 00:00:00 Intro 00:00:37 Requirements 00:01:32 Solution/Project overview 00:05:37 Creating a new Serverless Framework project 00:07:52 serverless.yml - WebSocket event lambda functions 00:11:25 serverless.yml - AWS resources (DB tables) 00:13:01 What is DynamoDB Secondary Index? 00:17:35 Messages Table Definitions 00:21:48 Permissions 00:23:45 Env vars 00:24:40 handlers.ts - handle different event route keys 00:28:34 handlers.ts - handleConnect() 00:37:07 handlers.ts - handleDisconnect() 00:40:28 handlers.ts - getClients() 00:52:40 handlers.ts - notifyClients() 01:06:30 Code walk-through 01:13:31 Testing the code with CLI websocket client 01:20:10 Fixing issues found during the test 01:35:31 Another test 01:38:15 handlers.ts - handleSendMessage() 02:11:06 handlers.ts - handleGetMessages() 02:32:07 - Testing new websocket events with CLI 02:37:56 - Fixing "createdAt" timestamp issue 02:41:37 - Creating a new project for User Interface 02:46:39 - Looking for an open source TailwindCSS components 02:48:01 - Using TailwindCSS component in React 02:51:28 - Using Login TailwindCSS component in React 02:54:02 - Implementing a logic to show Login screen at the beginning 02:57:12 - Adding a nickname logic 03:08:18 - WebSocket connection from React & getting clients 03:28:47 - Building users sidebar with React and TailwindCSS 03:58:43 - Getting the messages with WebSocket client 04:08:53 - Sending the messages implementation 04:24:43 - Displaying the messages implementation 05:16:59 - Deployment to AWS S3 05:21:31 - Final Test

How to Build REST APIs LIKE A PRO in 2023 (With Tests)
▶︎

How to Build REST APIs LIKE A PRO in 2023 (With Tests)

How to Build a Serverless REST API with Node.js, TypeScript, and AWS DynamoDB
▶︎

How to Build a Serverless REST API with Node.js, TypeScript, and AWS DynamoDB

How Senior Engineers Actually Build With AI in 2026 | Build a Full Stack Systems Architecture App
▶︎

How Senior Engineers Actually Build With AI in 2026 | Build a Full Stack Systems Architecture App

How to use WebSockets with React and Node
▶︎

How to use WebSockets with React and Node

Working with WebSockets on AWS
▶︎

Working with WebSockets on AWS

Let’s Handle 1 Million Requests per Second, It’s Scarier Than You Think!
▶︎

Let’s Handle 1 Million Requests per Second, It’s Scarier Than You Think!

(REALLY) Build a WordPress Website with Claude in 2026
▶︎

(REALLY) Build a WordPress Website with Claude in 2026

AWS Explained: The Most Important AWS Services To Know
▶︎

AWS Explained: The Most Important AWS Services To Know

How to Fetch and Update S3 Files with AWS Lambda, Serverless Framework, and TypeScript
▶︎

How to Fetch and Update S3 Files with AWS Lambda, Serverless Framework, and TypeScript

Want to make a video chat app? Watch this video for WebRTC!
▶︎

Want to make a video chat app? Watch this video for WebRTC!

Getting started with AWS Lambda and Serverless Framework
▶︎

Getting started with AWS Lambda and Serverless Framework

Serverless app using NodeJS, React and AWS (API Gateway, Lambda, DynamoDB, S3)
▶︎

Serverless app using NodeJS, React and AWS (API Gateway, Lambda, DynamoDB, S3)

Full HTTP Networking Course – Fetch and REST APIs in JavaScript
▶︎

Full HTTP Networking Course – Fetch and REST APIs in JavaScript

Building APIs with Amazon API Gateway
▶︎

Building APIs with Amazon API Gateway

Control ESP32 from ANYWHERE in the World - Step-By-Step Tutorial
▶︎

Control ESP32 from ANYWHERE in the World - Step-By-Step Tutorial

React App on AWS S3 with Static Hosting + Cloudfront | Practical AWS Projects #1
▶︎

React App on AWS S3 with Static Hosting + Cloudfront | Practical AWS Projects #1

Terraform Course - Automate your AWS cloud infrastructure
▶︎

Terraform Course - Automate your AWS cloud infrastructure

How to build a chat using Lambda + WebSocket + API Gateway? (nodejs)
▶︎

How to build a chat using Lambda + WebSocket + API Gateway? (nodejs)

AI Course for Developers – Build AI-Powered Apps with React
▶︎

AI Course for Developers – Build AI-Powered Apps with React

Build an Authentication/Login System on AWS with React.js and a Serverless API - Part 1 (backend)
▶︎

Build an Authentication/Login System on AWS with React.js and a Serverless API - Part 1 (backend)