-
Join a specified room to chat
-
Send the geographical location to other users in the room if permission is granted
-
Automatically scroll down upon receiving a new message
-
Responsive web design (RWD)
Follow the instructions below to set up the environment and run this project on your local machine
- Node.js
- Download ZIP or clone this repo
> git clone https://github.com/Mehulcoder/Chat-Application.git
- Install dependencies via NPM
> npm install
- Back to the root directory and type the below command to start the server and the service
> npm run dev
- See it up and running on http://localhost:8000
- Deploy to Heroku
> heroku create
> git push heroku master
- Open the app in the browser
> heroku open
- jquery
- mustache
- express
- NodeJS
- compression
- helmet
- socket.io
- moment
- Send an event to everybody in the room 'The Office Fans'
io.emit -> io.to('The Office Fans').emit
- Send an event to everybody in the room 'The Office Fans' except for the current user
socket.broadcast.emit -> socket.broadcast.to('The Office Fans').emit
- Send an event to a specific user
socket.emit