Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjammin4dayz/nodejs-chat-app
A basic chat implementation for Node.js
https://github.com/benjammin4dayz/nodejs-chat-app
application docker group-chat html-css-javascript nodejs realtime-messaging self-hosted websocket-chat
Last synced: about 1 month ago
JSON representation
A basic chat implementation for Node.js
- Host: GitHub
- URL: https://github.com/benjammin4dayz/nodejs-chat-app
- Owner: benjammin4dayz
- License: mit
- Created: 2024-07-17T22:14:16.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T03:10:35.000Z (5 months ago)
- Last Synced: 2024-07-26T04:27:14.407Z (5 months ago)
- Topics: application, docker, group-chat, html-css-javascript, nodejs, realtime-messaging, self-hosted, websocket-chat
- Language: JavaScript
- Homepage: https://hub.docker.com/r/benjammin4dayz/nodejs-chat-app
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
git clone https://github.com/benjammin4dayz/nodejs-chat-app
cd nodejs-chat-app
```### Node.js
Install dependencies
```bash
npm ci
```Develop
```bash
npm run dev
```Run the app
```bash
npm start
```### Docker
#### Example using docker run:
```bash
docker run -p 80:80 benjammin4dayz/nodejs-chat-app
```#### Example using docker-compose:
```yaml
version: '3.9'services:
server:
image: benjammin4dayz/nodejs-chat-app
ports:
- '80:80'
```