Skip to content

Commit 043490f

Browse files
authored
Merge pull request #43 from TP-ACH/hotfix_1
Refactor Readme and init
2 parents 2365f53 + df6c366 commit 043490f

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
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
```
1013
cp .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
2025
docker-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-

init.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ PWFILE="/mosquitto/config/pwfile"
77
DB_DIR="./mosquitto/data"
88
DB_FILE="$DB_DIR/mosquitto.db"
99

10+
mkdir ./app/logs
11+
1012
if [ ! -d "$DB_DIR" ]; then
1113
mkdir -p "$DB_DIR"
1214
fi

0 commit comments

Comments
 (0)