Home

Awesome

Chat example

express.js ♥︎ socket.io ♥︎ VanillaJS

Minimalistic chat example. Pull requests welcome!

Frontend code: https://github.com/pakastin/chat-example/blob/master/public/js/main.js

Backend code: https://github.com/pakastin/chat-example/blob/master/src/index.js

Demo

https://chat-example-pakastin.c9users.io/

Install

npm install

Start

npm start

Navigate to http://localhost:8080

Docker

docker build .
docker run -d -p 8080:8080 xxxxxxxxxx

Navigate to http://localhost:8080

Check out my other projects