An open API service indexing awesome lists of open source software.

https://github.com/tamij12/real-time-chat

Websocket practice - backend chat en tiempo real
https://github.com/tamij12/real-time-chat

backend express mongodb mongoose nodejs socket-io

Last synced: 3 months ago
JSON representation

Websocket practice - backend chat en tiempo real

Awesome Lists containing this project

README

          

# **Real-Time Chat App** 💬⚡

Un chat en tiempo real desarrollado con **Node.js**, **Express**, **Socket.io** y **MongoDB**. Permite a los usuarios enviar y recibir mensajes instantáneamente, con historial de conversaciones almacenado en la base de datos.

## **🛠 Características**
✅ Mensajería en tiempo real con **Socket.io**
✅ Historial de chat almacenado en **MongoDB**
✅ Desconexión y Reconexión al servidor

## **🚀 Tecnologías utilizadas**
- **Frontend:** HTML, CSS, JavaScript
- **Backend:** Node.js, Express, Socket.io
- **Base de Datos:** MongoDB, Mongoose

## **📌 Cómo usarlo**
1️⃣ Clona el repositorio
```bash
git clone https://github.com/tu-usuario/real-time-chat.git
```
2️⃣ Instala las dependencias
```bash
cd real-time-chat
npm install
```
3️⃣ Configura las variables de entorno en un archivo `.env`
```env
URI=mongodb+srv://tu_usuario:tu_contraseña@cluster.mongodb.net/tu_bd
PORT=5000
```
4️⃣ Inicia el servidor
```bash
npm start
```
5️⃣ Abre el navegador en `http://localhost:5000` y ¡empieza a chatear! 🚀

---

🔹 ** Practica con WebSockets y desarrollo en tiempo real.**
💡 ¡Cualquier sugerencia es bienvenida! 😊