This is the backend of a real-time chat application built with Node.js, Express, and Socket.io.
- Real-Time Communication: Socket.io is used to manage WebSocket connections.
- Friend Request: Users can send friend requests to each other.
- Secure User Authentication: Implemented with JWT and bcrypt.
- Media Management: Image uploads are handled with Cloudinary.
- Database Integration: MongoDB for storing user and message data.
- Node.js
- Express.js
- MongoDB
- Socket.io
- JWT
- bcrypt
- Cloudinary
- Node.js and npm installed
- MongoDB instance
- Cloudinary account for image management
- Clone the repository:
git clone https://github.com/your-username/chat-backend.git cd chat-backend
- Install dependencies:
git clone https://github.com/your-username/chat-backend.git cd chat-backend
- Clone the repository: Create a .env file and configure it. (check .env.demo)
- Clone the repository:
npm start