/node-express-chat

Node.js and Socket.io make full-duplex communication easy (full 2-way, like a cell phone conversation)

Primary LanguageJavaScript

node-express-chat

Node.js and Socket.io make full-duplex communication easy (full 2-way, like a cell phone conversation)

Links

Requirements

  • A browser (e.g., Chrome)
  • A text editor (e.g., VS Code, or Notepad++, or Chrome)

Benefits

  • Folder-based
  • Easy to write
  • Node.js non-blocking event loop supports many concurrent requests
  • Socket.io makes full duplex communication easy

Prerequisites

Install Dependencies Listed in package.json

Open PowerShell here as admin and run: npm install. Verify node_modules was created. Review the contents.

Start your Server

Open PowerShell here as admin and start your app with nodemon: nodemon app.js

Open a Browser Client

  1. Open a web browser.
  2. Go to the URL: http://127.0.0.1:3003/ or http://localhost:3003/.

Use PowerShell and ipconfig to get your IP address

  1. Open PowerShell as Admin, run ipconfig.
  2. Find your IPv4 address.
  3. Invite others to interact with your server-side app.

Terms

  • full duplex
  • Socket.io
  • npm install
  • node_modules
  • package-lock.json

Reference

Resources

See Also