-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
55 lines (44 loc) · 1.27 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## Development Server commands
.PHONY: setup-server-libs
setup-server-libs:
@echo "Installing server dependencies"
npm install
.PHONY: run-server-dev
run-server-dev:
@echo "Starting development server"
npm run dev
.PHONY: run-server
run-server:
@echo "Starting server"
npm run clean
npm run build
npm run start
## Development Server docker compose commands
DOCKER_COMPOSE_DEV_FILE=docker-compose-dev.yml
DOCKER_COMPOSE_DEV_SERVER_SERVICE=devmind_api
.PHONY: compose-dev-build
compose-dev-build:
@echo "Running Devmind API docker compose dev build"
docker compose -f $(DOCKER_COMPOSE_DEV_FILE) build
.PHONY: compose-dev-up
compose-dev-up:
@echo "Running Devmind API docker compose dev up in detach mode"
docker compose -f $(DOCKER_COMPOSE_DEV_FILE) up -d
.PHONY: compose-dev-logs
compose-dev-logs:
@echo "Running Devmind API docker compose dev logs"
docker compose -f $(DOCKER_COMPOSE_DEV_FILE) logs $(DOCKER_COMPOSE_DEV_SERVER_SERVICE) -f
.PHONY: compose-dev-down
compose-dev-down:
@echo "Running Devmind API docker compose dev down"
docker compose -f $(DOCKER_COMPOSE_DEV_FILE) down
## UI commands
.PHONY: setup-ui-libs
setup-ui-libs:
cd ui; npm install; cd ..
.PHONY: run-ui-dev
run-ui-dev:
cd ui; npm run dev; cd ..
.PHONY: build-ui
build-ui:
cd ui; npm run build; cd ..