init
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
.PHONY: install dev prod stop logs
|
||||
|
||||
COMPOSE = docker compose
|
||||
|
||||
install:
|
||||
pip install --break-system-packages -r backend/requirements.txt
|
||||
cd frontend && npm install
|
||||
|
||||
dev:
|
||||
@echo "Backend: http://localhost:8000"
|
||||
@echo "Frontend: http://localhost:5173"
|
||||
@cd backend && uvicorn main:app --reload --port 8000 &
|
||||
@cd frontend && npx vite --port 5173
|
||||
|
||||
prod:
|
||||
@touch creator.db
|
||||
$(COMPOSE) up -d --build
|
||||
|
||||
stop:
|
||||
-@pkill -f "uvicorn main:app" 2>/dev/null
|
||||
-@pkill -f "vite --port 5173" 2>/dev/null
|
||||
$(COMPOSE) down
|
||||
@echo "Server gestoppt."
|
||||
|
||||
logs:
|
||||
$(COMPOSE) logs -f
|
||||
Reference in New Issue
Block a user