Giter Site home page Giter Site logo

nodejs-ws-chat's Introduction

nodejs-ws-chat

Simple chat on WebSockets, using NodeJS with Express.

This project was created by Maxim Mazurok during a teaching session to showcase use of WebSockets to students.

Demo

Demo is deployed to heroku and can be acceced by this URl: https://nodejs-ws-chat.herokuapp.com/

(It may take a couple of minutes to start sleeping server)

You can open this URL on multiple devices, or in different browser tabs (simulating multiple chat users). Type your message and hit enter or press send button. Message will be recieved by all other currently opened instances of the app.

Getting started

  1. Clone repo:
git clone https://github.com/Maxim-Mazurok/nodejs-ws-chat
  1. Install dependecies:
npm install
  1. Install and run ngrok: Note: ngrok is not required, I'm using it to make WebSockets work on local environment and to share url to other devices
npm install --global ngrok
  1. Run the server:
npm start
  1. Open chat: After starting server, run ngrok http 8080 and open provided https://xxxxxx.ngrok.io page on multiple devices, or in different browser tabs (simulating multiple chat users). Type your message and hit enter or press send button. Message will be recieved by all other currently opened instances of the app.

nodejs-ws-chat's People

Contributors

maxim-mazurok avatar

Stargazers

Ayan Shah avatar Mike Nykytenko avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.