https://minh100.github.io/MChat/
Web app that allows the creation of multiple rooms and allow multiple users to join a room and talk to other users
Simple clone the repo then go into each folder (root, server, client) and run
npm install
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
Simply push to github from the root folder to push code both in client and server then
- Navigate into the server folder
- git add .
- git commit -m "message"
- git push heroku master
- npm run deploy
- 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
- Backend
- Express
- Nodejs
- Front End
- React
- Other
- Socket.IO
- 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
- To fix this simply add **--legacy-peer-deps"
- When installing might have a tree dependency problem
- react-router-dom
- React Context for state management
- querystring
- Used to parse url to recieve info for names and rooms
Github Pages reference
Deploy by Heroku CLI is the easiest way