Skip to content
Node that serves an HTML that uses socket.io to create a chat application
JavaScript CSS HTML Dockerfile
Branch: master
Clone or download
Latest commit 084a24b Nov 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client adds comments Nov 2, 2019
.gitignore adds styling and info Oct 24, 2019
Dockerfile adds comments Oct 26, 2019
Readme.md adds docker info Nov 13, 2019
package-lock.json working chat, just sends messages Oct 23, 2019
package.json working chat, just sends messages Oct 23, 2019
server.js adds comments Nov 2, 2019

Readme.md

Details

This project contains an static server that serves the HTML/CSS/JS required for the chat app. When a message is sent from a client,the message is broadcasted to the rest of the clients with the name of the user that sent it.

Built with

  • Node.js v10
  • Socket.io
  • HTML
  • CSS
  • JavaScript

How to run

You can run this app locally with Node.js or with Docker:

Run with Node.js

  • Install dependencies with npm i
  • Start the static server with npm start
  • Visit localhost:3000 in your browser

Run with Docker

  • Create docker image: docker build --rm -f "Dockerfile" -t chatsocketio:latest .
  • Run image: docker run -rm -it -p 3000:3000/tcp socketio-chat:latest
  • Visit localhost:3000 in your browser

Author

Antonio Ufano - uf4no.com

You can’t perform that action at this time.