-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.25 KB
/
Makefile
File metadata and controls
46 lines (33 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.PHONY: help list migrate
##--------------------------------------------------------
## Help
##--------------------------------------------------------
help: ## Mostrar esta ayuda
@echo
@echo "Usage: make [target]"
@echo
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) \
| sort \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
@echo
##--------------------------------------------------------
## Project setup
##--------------------------------------------------------
requirements: ## Instalar dependencias
pip install -r requirements.txt
run: ## Ejecutar proyecto
flet run src/main.py
web: ## Iniciar servidor web
flet run ./src/main.py --web
init_db: ## Inicializar base de datos
PYTHONPATH=src python src/scripts/init_db.py create_db
reset_db: ## Eliminar y volver a crear todas las tablas (pierdes datos)
PYTHONPATH=src python src/scripts/init_db.py reset_db
update_schema: ## Actualizar esquema de la base de datos
PYTHONPATH=src python src/scripts/init_db.py update_schema
##--------------------------------------------------------
## Utilidades genéricas
##--------------------------------------------------------
list: ## Listar todos los archivos del proyecto
@find . -maxdepth 2 -print