Chat en tiempo real enfocado en demostrar un frontend moderno, animado y optimizado, con backend m铆nimo como relay de mensajes.
- Frontend: React + TypeScript + TailwindCSS 4 + Shadcn UI + Zustand + Framer Motion.
- Backend: Bun + ws (WebSocket) como relay de eventos.
- Persistencia: LocalStorage (opcional) en el cliente.
- Despliegue: Frontend en Vercel, Backend en Railway/Render.
real-time-chat/ 鈹溾攢 server/ # Bun + ws (WebSocket relay) 鈹溾攢 client/ # React + Tailwind + Shadcn UI + Zustand 鈹斺攢 README.md
git clone https://github.com/tu-usuario/real-time-chat.git
cd real-time-chat
### 2锔忊儯 Instalar dependencias
* Servidor
cd server
bun install
cd ..
* Cliente
cd client
bun install
cd ..
鈻讹笍 Ejecuci贸n en desarrollo
Backend
bash
cd server
bun run server.ts
Servidor disponible en ws://localhost:8080.
Frontend
bash
cd client
bun dev
Frontend en http://localhost:5173 (o el que indique Vite).
馃實 Variables de entorno
En client/.env:
VITE_WS_URL=ws://localhost:8080