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
- Host: GitHub
- URL: https://github.com/tamij12/real-time-chat
- Owner: tamij12
- Created: 2025-02-27T17:24:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T21:12:32.000Z (over 1 year ago)
- Last Synced: 2025-02-28T03:53:57.302Z (over 1 year ago)
- Topics: backend, express, mongodb, mongoose, nodejs, socket-io
- Language: HTML
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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! 😊