Chat Application
This chat demonstrates real-time message transferring from one source to another. The process starts with the client sending regular HTTP requests to the server. With the knowledge of web sockets and socket.io, it becomes easy to code. The real-time communication support feature of NodeJS can be used here. Here, the messages get updated without refreshing the page which can be done using routers. Socket.io can be used to build real-time applications which can be used to receive and send messages. The use of mongoose provides a lot of convenience in the creation and management of data in ongoDB. Moment helps you manipulate and format dates in JavaScript. Moreover, this application represents Messenger.
chathub.mp4
- One-to-one chat and group chat
- Add and remove users from group and update group name (only for admin)
- Real-time messaging without refreshing the page( Real-time data transfer)
- Signup, Login and Logout
- Download the zip file.
- Unzip it. You can see a folder is extracted name -
CHATHUB
- Go inside it and open it in your VS code.
npm i
npm start
cd frontend
npm i
npm start
Open http://localhost:3000 to view it in your browser.
⚠️ In case tailwind CSS is not installed then install it for React [https://tailwindcss.com/docs/guides/create-react-app]
In the terminal paste this ->
npm install -D tailwindcss
npx tailwindcss init
Then go to the tailwind.config.js file and make the changes ->
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
Now go to the index.css file and update it with this ->
@tailwind base;
@tailwind components;
@tailwind utilities;