-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 949 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 949 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
# Makefile for fullstack app
.PHONY: install-frontend start-frontend clean-backend install-backend test-backend run-backend build-frontend build-and-run
# 1. Install frontend dependencies
install-frontend:
cd frontend-angular && npm install
# 2. Start frontend dev server
start-frontend:
cd frontend-angular && npm run start
# 3. Clean backend
clean-backend:
cd backend-spring-boot && ./mvnw clean
# 4. Install backend dependencies
install-backend:
cd backend-spring-boot && ./mvnw install
# 5. Run backend tests
test-backend:
cd backend-spring-boot && ./mvnw test
# 6. Run backend server
run-backend:
cd backend-spring-boot && ./mvnw spring-boot:run
# 7. Build frontend production
build-frontend:
cd frontend-angular && npm run build -- --configuration=production
# 8. Build frontend and run backend
build-and-run:
cd frontend-angular && npm run build -- --configuration=production
cd backend-spring-boot && ./mvnw spring-boot:run