-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
40 lines (32 loc) · 1010 Bytes
/
justfile
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
40
deploy-db:
cd db
fly deploy --image docker-hub-mirror.fly.io/flyio/postgres-flex:17.2
cd -
package-backend:
cd backend && mvn clean package && cd -
build:
cd backend && mvn clean install && cd -
cd frontend && pnpm run build && cd -
test:
cd backend && mvn test && cd -
cd frontend && pnpm test && cd -
setup:
cd frontend
pnpm install
npx husky install
cd -
cd backend
mvn install
cd -
# Run backend with default configuration (FortuneLoader disabled)
dev-backend:
cd backend && ./mvnw spring-boot:run -Dspring-boot.run.profiles=dev
# Run backend with FortuneLoader enabled
dev-backend-with-fortune:
cd backend && ./mvnw spring-boot:run -Dspring-boot.run.arguments="--app.fortune-loader.enabled=true,--server.port=8082" -Dspring-boot.run.profiles=dev
# Run frontend development server
dev-frontend:
cd frontend && pnpm run dev
# Run both backend and frontend (FortuneLoader disabled)
dev:
just dev-backend & just dev-frontend