-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (43 loc) · 1.1 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
56
57
58
59
60
61
62
63
DOCKER_COMPOSE_LOCAL = docker compose -f docker-compose.local.yml
DOCKER_COMPOSE_PRODUCTION = docker compose -f docker-compose.prod.yml
# Execute the Backend
.PHONY: dev-backend
dev-backend:
cd Backend && npm start
# Execute the Frontend
.PHONY: dev-frontend
dev-frontend:
cd Frontend && npm run dev
# Install dependencies
.PHONY: install-backend
install-backend:
cd Backend && npm install
.PHONY: install-frontend
install-frontend:
cd Frontend && npm install
# Execute test in the frontend
.PHONY: test-frontend
test-frontend:
cd Frontend && npm test
# Docker development
.PHONY: docker-dev-up
docker-dev-up:
${DOCKER_COMPOSE_LOCAL} up --build -d
.PHONY: docker-dev-down
docker-dev-down:
${DOCKER_COMPOSE_LOCAL} down
# Docker production
.PHONY: docker-prod-up
docker-prod-up:
${DOCKER_COMPOSE_PRODUCTION} up --build -d
.PHONY: docker-prod-down
docker-prod-down:
${DOCKER_COMPOSE_PRODUCTION} down
# Create database
.PHONY: create-database
create-database:
cd Scripts && ./setup_database.sh
# Certificates
.PHONY: generate-certificates
generate-certificates:
cd nginx && ./generate-certificates.sh