generated from Templates/Docker_Image
feat: dashboard via NiceGUI, refs NOISSUE
This commit is contained in:
28
ai_software_factory/Makefile
Normal file
28
ai_software_factory/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
.PHONY: help run-api run-frontend run-tests init-db clean
|
||||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " make run-api - Run FastAPI app with NiceGUI frontend (default)"
|
||||
@echo " make run-tests - Run pytest tests"
|
||||
@echo " make init-db - Initialize database"
|
||||
@echo " make clean - Remove container volumes"
|
||||
@echo " make rebuild - Rebuild and run container"
|
||||
|
||||
run-api:
|
||||
@echo "Starting FastAPI app with NiceGUI frontend..."
|
||||
@bash start.sh dev
|
||||
|
||||
run-frontend:
|
||||
@echo "NiceGUI is now integrated with FastAPI - use 'make run-api' to start everything together"
|
||||
|
||||
run-tests:
|
||||
pytest -v
|
||||
|
||||
init-db:
|
||||
@python -c "from main import app; from database import init_db; init_db()"
|
||||
|
||||
clean:
|
||||
@echo "Cleaning up..."
|
||||
@docker-compose down -v
|
||||
|
||||
rebuild: clean run-api
|
||||
Reference in New Issue
Block a user