This project is a straightforward chat application built using Socket.IO, offering both one-to-one and group chat functionalities. It leverages socket rooms to manage chat interactions effectively. Additionally, several APIs are created to support and enhance the overall chat module.
- Clone this repository: SocketChat.
- An IDE or text editor like VS Code.
- Node version installed above 20.11.1.
- A package manager such as NPM or Yarn.
- Install MongoDB.
- API testing tool like Postman.
- Import the
SocketChatAPIs.postman_collection.json
file in Postman. - Run the
npm run dev
commands.
npm install
npm run dev
The following topics covered in this unit:
- User register and Login
- Request method like Get, Post, Put, Delete
- JWT authorization and authentication
- Joi validation
- MongoDB
- Socket.IO
- Bcrypt for password hashing and compare
- Eslint
- Multi environment config
- PM2 for alive forever
- Prettier for code formatter
- Postman collection
Node.js: | Nodejs.org |
Typescript: | typescriptlang.org |
Socket.io: | socket.io |
© 2024 Rajneshwar Singh