Skip to content

Latest commit

Β 

History

History
92 lines (69 loc) Β· 3.41 KB

File metadata and controls

92 lines (69 loc) Β· 3.41 KB

24 - May - 2022

Chat App | Live Link

React + Node.js

πŸ“ Instruction of using this Chat App

Just Open this 'Live Link' as 1st tab into your browser & give 'userName' + 'roomName'
& open this same 'Live Link' in another (2nd) tab of your browser...
& this time give a different 'userName' but 'same roomName' that you give before, 
when you open this chat app through (1st) tab into your browser.

in-shot: 'userName' must be different & 'roomName' must be same...

Now start testing & chatting... 

Happy Chatting!... 😎😊😎

FrontEnd - Dependencies...

No Package Installs Usage for
1 yarn add react-route-dom declarative routing in react web app
2 yarn add socket.io-client for component navigation
3 yarn add query-string Parse and stringify URL query strings
4 yarn add react-emoji An emoji mixin for React
5 yarn add react-scroll-to-bottom React container that will auto scroll to bottom

BackEnd - Dependencies...

No Package Installs Use for
1 yarn add cors enabling Cors origin request
2 yarn add express creating routing for application
3 yarn add nodemon changing happen, server restart automatically
4 yarn add socket.io real time data transfer

🟨
β”œβ”€β”€ client 
β”‚   β”œβ”€β”€ public              # root div#id for react app
β”‚   └── src
|       β”œβ”€β”€ components      # all needful components 
|       β”œβ”€β”€ style           # reset base styling
|       β”œβ”€β”€ App.js          # Router for navigate inside app
|       └── index.js        # client - app running start point
| 
β”œβ”€β”€ server
β”‚   β”œβ”€β”€ client
|   |   └── users.js        # temporary user database inside array 
β”‚   β”œβ”€β”€ public              # all static assets are present here
β”‚   └── index.js            # server - app running start point
|
β”œβ”€β”€ .gitignore
β”œβ”€β”€ license
└── README.md
🟨

Learning context by developing this application:

No Context learn by building this project...
1 Project Structure
2 ReadMe file styling at new way
3 FrontEnd + BackEnd Connectivity
4 FrontEnd + BackEnd Full Deployment
5 HTTP Server + Express + Socket.io
6 Client + Server data passing by Socket.io
7 Life Cycle Method useEffect Hook + cline-up
8 users[array] data manipulation by helper function's()
9 using of .on() + .emit() method from Socket.io
10 usage of socket.broadcast.to(chatRoom).emit('message', {data})

Learning by inspired from.

πŸ“œ License under the MIT License