Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

View the website here

https://minh100.github.io/MChat/

MChat

Web app that allows the creation of multiple rooms and allow multiple users to join a room and talk to other users

Installation

Simple clone the repo then go into each folder (root, server, client) and run

npm install

Start Local App

Navigate to server folder and run

node server.js

Then navigate into client folder and make sure the SERVER variable is set to localhost in the Socket.js file. Then run

npm start

Updating work

Simply push to github from the root folder to push code both in client and server then

If any changes in server folder

  1. Navigate into the server folder
  2. git add .
  3. git commit -m "message"
  4. git push heroku master

If any changes in client folder

  1. npm run deploy

Features

  • Create multiple rooms using a user made code
    • Multiple users can join a single room and talk with one another
    • Prevents multiple room with the same code
  • Create individual/unique usernames
  • Lists out the rooms that are created and in session
    • Shows the number of people within a room

Tech Stack

  • Backend
    • Express
    • Nodejs
  • Front End
    • React
  • Other
    • Socket.IO

Dev Features

  • Github Pages
    • Used to host/display frontend server
  • Heroku
    • Used to host backend server
  • cors
  • nodemon
  • react-scroll-to-bottom
    • When installing might have a tree dependency problem
      • To fix this simply add **--legacy-peer-deps"

        npm install --save react-scroll-to-bottom --legacy-peer-deps

  • react-router-dom
  • React Context for state management
  • querystring
    • Used to parse url to recieve info for names and rooms

References

Github Pages reference
Deploy by Heroku CLI is the easiest way

About

Online Chat App allowing users to communicate in real-time

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages