Skip to content

benjammin4dayz/nodejs-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Chat App

A basic realtime chat application that runs on Node.js or in a Docker container.

The client and user interface is written in html/css/js and served from the base route of the app /.

The server supports multiple clients and provides each of them with a unique identity which is generated upon connection. It shares messages between all clients connected to the chat room and broadcasts when a user connects or disconnects.

Getting Started

Clone the repo

git clone https://github.com/benjammin4dayz/nodejs-chat-app
cd nodejs-chat-app

Node.js

Install dependencies

npm ci

Develop

npm run dev

Run the app

npm start

Docker

Example using docker run:

docker run -p 80:80 benjammin4dayz/nodejs-chat-app

Example using docker-compose:

version: '3.9'

services:
  server:
    image: benjammin4dayz/nodejs-chat-app
    ports:
      - '80:80'