2020-11-17 23:49:36 +01:00
|
|
|
# Ejemplo de Chat con Django
|
|
|
|
|
|
|
|
- Asíncrono.
|
|
|
|
- Channels.
|
|
|
|
- Integración con Redis.
|
|
|
|
- Preparado para salas individuales.
|
|
|
|
- Minimalismo en Front-End con Javascript Vainilla.
|
|
|
|
|
2020-11-17 23:51:52 +01:00
|
|
|
![demo](media/screenshot.png)
|
|
|
|
|
2020-11-17 23:49:36 +01:00
|
|
|
## Instalar
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip3 install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
Y levantar Redis.
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
## Ejecutar
|
|
|
|
|
|
|
|
``` shell
|
2020-11-17 23:51:52 +01:00
|
|
|
venv/bin/daphne -b localhost -p 8000 mi_web.asgi:application
|
2020-11-17 23:49:36 +01:00
|
|
|
```
|
|
|
|
|
2020-11-17 23:51:52 +01:00
|
|
|
Abre en tu navegador en ```127.0.0.1:8000```.
|