-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (58 loc) · 1.3 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
64
65
66
67
68
69
70
71
72
73
74
include .env
# Installing frontend dependencies
.PHONY: frontend-dep
frontend-dep:
cd frontend && yarn install
# running the frontend
.PHONY: frontend-run
frontend-run:
cd frontend && yarn start
# running the frontend
.PHONY: frontend-tunnel
frontend-tunnel:
cd frontend && yarn tunnel
# running ios frontend
.PHONY: frontend-ios
frontend-ios:
cd frontend && yarn ios
# Lint the frontend source code
.PHONY: frontend-lint
frontend-lint:
cd frontend && yarn lint
# Format the frontend source code
.PHONY: frontend-format
frontend-format:
cd frontend && yarn format
# Installing backend dependencies
.PHONY: backend-dep
backend-dep:
cd backend && go get .
# Lint backend source code
.PHONY: backend-lint
backend-lint:
cd backend && golangci-lint run
# Format backend source code
.PHONY: backend-format
backend-format:
cd backend && go fmt
# Build the docker db
.PHONY: db-run
db-run:
docker-compose up
# Rebuild the docker db
.PHONY: db-rebuild
db-rebuild:
docker-compose down
# Run backend
.PHONY: backend-run
backend-run:
cd backend && go run main.go
# convert the backend link to an ngrok link
.PHONY: backend-ngrok
backend-ngrok:
@echo ${EXPO_PUBLIC_API_DOMAIN}
cd backend && ngrok http --domain=${EXPO_PUBLIC_API_DOMAIN} 8080
# Test the backend
.PHONY: backend-test
backend-test:
cd backend