-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 792 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 792 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
.PHONY: help build run test clean stop logs
help:
@echo "Expense Tracker - Available Commands"
@echo "===================================="
@echo " make build - Build the project"
@echo " make run - Run with Docker Compose"
@echo " make stop - Stop all containers"
@echo " make test - Run tests"
@echo " make clean - Clean Docker containers and volumes"
@echo " make logs - View app logs"
@echo " make shell - Open PostgreSQL shell"
build:
mvn clean package -DskipTests
run:
docker-compose up --build
stop:
docker-compose down
clean:
docker-compose down -v
rm -rf target uploads test-uploads
test:
mvn verify
logs:
docker-compose logs -f app
shell:
docker-compose exec postgres psql -U tracker -d expense_tracker