24 - May - 2022
Chat App | Live Link
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!... 😎😊😎
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 |
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
🟨
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.