Skip to content

WebSocket-based chatroom application with Node.js + Express.js backend

Notifications You must be signed in to change notification settings

Ethan-Genser/NodeChatRoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatroom

WebSocket-based chatroom application with Node.js + Express.js backend

Cover

Prerequisites

Before you can run this program, ensure that you have the following software installed and functional:

  • Node.js v10.19.0 or newer
  • All necessary Node package dependencies as listed in package-lock.json. (note: you can install all dependencies by running the command npm install.

Running

  1. Download the source code from this repository.
  2. In the project root, run the command npm start to start the server.
  3. Open a browser, type 'localhost:3000' into the url bar, and press enter.
  4. Set the username for the new client by clicking 'Choose a nickname' in the top-right corner of the page. Then press the connect button at the bottom of the page to connect to the websocket server and be placed in a room.
  5. To talk with another instance of the client, repeat steps 3-4 in a new tab, window, or browser.

Authors