File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# backend
22
3- ## How to run it
3+ ## Prerequisitos
44
55- Tener instalado docker y docker compose.
6+ - Tener instalado sqlite3.
7+
8+ ## Iniciar backend
69
710- Copiar el .env.example como .env y completar las variables de ambiente
811
912```
1013cp .env.example .env
1114```
15+
1216- Correr el script para generar los archivos de mosquitto
17+
1318```
1419./init.sh
1520```
@@ -20,9 +25,6 @@ cp .env.example .env
2025docker-compose up -d
2126```
2227
23-
2428- Una vez hecho todo esto pueden validar si está todo corriendo correctamente al ver los logs con ` docker compose logs -f `
2529
26-
2730### Si esta todo OK, deberia estar corriendo en [ localhost:8000] ( http://localhost:8000 )
28-
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ PWFILE="/mosquitto/config/pwfile"
77DB_DIR=" ./mosquitto/data"
88DB_FILE=" $DB_DIR /mosquitto.db"
99
10+ mkdir ./app/logs
11+
1012if [ ! -d " $DB_DIR " ]; then
1113 mkdir -p " $DB_DIR "
1214fi
You can’t perform that action at this time.
0 commit comments