https://github.com/taiseen/react-node-chat-app
This app is developing by the help of JSM
https://github.com/taiseen/react-node-chat-app
jsm node-js react-js socket-io socket-io-client
Last synced: 5 months ago
JSON representation
This app is developing by the help of JSM
- Host: GitHub
- URL: https://github.com/taiseen/react-node-chat-app
- Owner: taiseen
- License: mit
- Created: 2022-05-23T21:31:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-25T20:06:25.000Z (over 3 years ago)
- Last Synced: 2025-03-02T06:19:18.223Z (10 months ago)
- Topics: jsm, node-js, react-js, socket-io, socket-io-client
- Language: JavaScript
- Homepage: https://chat-app-bd.netlify.app
- Size: 6.66 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README

> 24 - May - 2022
## Chat App | [Live Link][client]
# React + Node.js
## [Frontend][client] | [Backend][server]
## 📝 Instruction of using this Chat App
```jsx
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[.](https://youtu.be/ZwFA3YMfkoc)
## 📜 License under the [MIT License](license)
[client]: https://chat-app-bd.netlify.app
[server]: https://react-node-chat-app-bd.herokuapp.com