Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Real-Time Telemedicine App: NestJS, Next.js & WebRTC
New

Real-Time Telemedicine App: NestJS, Next.js & WebRTC

Build WebRTC video calls, live chat and a shared whiteboard with Socket_IO and PostgreSQL in one full-stack flow
Created byJongIn Han
Last updated 10/2026
English

What you'll learn

  • - Organize a web app, an API and a shared contracts package in a pnpm workspace so both apps use the same types and rules
  • - Design PostgreSQL tables and build a NestJS REST API with input validation (400) and missing-target handling (404)
  • - Build role-based Next.js screens: sign-in, patient queue and consultation status changes, including resuming a consultation
  • - Manage Socket_IO rooms and participant lists, and tell signaling apart from media transport
  • - Build WebRTC connections with offer, answer and ICE, and the perfect negotiation rule that stops two simultaneous offers from colliding
  • - Add camera, microphone and screen sharing, and handle the browser autoplay limits
  • - Build optimistic chat that restores its history from the database, and a shared board with ratio coordinates
  • - Apply a role-priority rule on both the screen and the server, and verify the work with tests, lint and a production build

Course content

7 sections • 26 lectures • 2h 10m total length
  • 0.1 The Finished Project Demo4:21

    A tour of the finished project before we build it. Doctor, nurse, patient and guardian meet in one consultation room: a status saved in PostgreSQL, a video call over WebRTC, live chat, a shared board, and a read-only record of the finished consultation.

  • 0.2 Architecture and Learning Order3:10

    The big picture. Three roads carry data: HTTP for lists and status changes, Socket.IO for rooms, chat and the board, and WebRTC for video and audio. See the three folders of the project, the learning order of the course, and what the course deliberately leaves out.

Requirements

  • - Basic TypeScript and React (components, props, state)
  • - Node.js 22.22 or newer, pnpm 10, Docker Desktop (for the PostgreSQL container), and Chrome or Edge
  • - A PC with a camera and a microphone is helpful for trying the video features
  • - No NestJS or WebRTC experience needed: each concept is explained when the code appears

Description

This course contains the use of artificial intelligence. The English narration was produced with a licensed text-to-speech voice from instructor-authored and instructor-reviewed course material.

Most WebRTC and SocketIO tutorials stop at a demo. This course connects everything into one real workflow: a patient status saved in PostgreSQL reaches the screen, and doctor, nurse, patient and guardian browsers meet in one consultation room with video, audio, chat and a shared board.

You build a training telemedicine service with NestJS, Nextjs, PostgreSQL, SocketIO and WebRTC. We start with a pnpm workspace and a shared contracts package, then create the tables and the REST API. On top of that we build role-based screens, a patient queue and a responsive consultation room. After that comes the real-time part: rooms and participants, WebRTC connections with a rule that survives both sides starting at once, camera, microphone and screen sharing, guardian invitations, optimistic chat with a saved history, a shared board based on 0 to 1000 coordinates, role priority for who controls the board and captions, and browser voice captions. The last section covers completed records, resuming a consultation, lint, tests and a production build.

Every lecture highlights the real source lines on screen, runs the commands in a real terminal, and shows the app in two or three browser tabs at once. When two people turn on the camera at the same moment and the connection fails, you see why and how the fix works.

The project is for training. All patients and conversations are fictional, and the course does not cover real authentication, a TURN server, encryption of personal data or deployment. Those are listed as production extension tasks, and the last lecture gives you five exercises with the file to start from.

Who this course is for:

  • - Web and backend developers who want to connect NestJS and Next.js in one project
  • - Developers who mix up what Socket_IO carries and what WebRTC carries, and want to see it in code
  • - Developers who want a portfolio project beyond a CRUD app: a real-time collaboration service
  • - Mid-level developers who want to learn permission rules and real-time synchronization as one flow