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.
Clone the repo
git clone https://github.com/benjammin4dayz/nodejs-chat-app
cd nodejs-chat-app
Install dependencies
npm ci
Develop
npm run dev
Run the app
npm start
docker run -p 80:80 benjammin4dayz/nodejs-chat-app
version: '3.9'
services:
server:
image: benjammin4dayz/nodejs-chat-app
ports:
- '80:80'