-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (32 loc) · 861 Bytes
/
makefile
File metadata and controls
39 lines (32 loc) · 861 Bytes
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
# Variabili
PNPM=pnpm
DC=docker compose
COMPOSE_FILE=compose.yml
# Installa le dipendenze del progetto
install:
@echo "📦 Installing project dependencies with pnpm..."
$(PNPM) install
# Costruisce e avvia i container (DB + backend)
up:
@echo "🚀 Building and starting Docker containers..."
$(DC) up -d
# Avvia il dev server (Node/JS)
dev:
@echo "▶️ Starting development server..."
$(PNPM) run dev
# Ferma i container
stop:
@echo "🛑 Stopping Docker containers..."
$(DC) down
# Avvia tutto: container e dev server
start:
@echo "🚀 Starting containers and dev server..."
make up
make dev
# Cancella il progetto
clean:
@echo "🧹 Cleaning up project..."
make stop
@echo "🧽 Removing node_modules..."
@rm -rf node_modules 2>nul || rmdir /s /q node_modules || echo "node_modules not found"
.PHONY: install up dev stop start clean