Mehulcoder/Chat-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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
  1. Download ZIP or clone this repo
> git clone https://.com/Mehulcoder/Chat-Application.git
  1. Install dependencies via NPM
> npm install
  1. Back to the root directory and type the below command to start the server and the service
> npm run dev
  1. See it up and running on http://localhost:8000
  1. Deploy to Heroku
> heroku create
> git push heroku master
  1. 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

About

A chat application with real time updates, chat rooms, location sharing, automatic scrolling and build with completely responsive web design.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published