-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (39 loc) · 1.18 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
########################
# Variables
DEFAULT_API_URL := "http://localhost:8000"
########################
# Django Project
run-debug:
DEBUG=True ./manage.py runserver 0.0.0.0:8000
run:
./manage.py runserver 0.0.0.0:8000
test-django:
DEBUG=True ./manage.py test
test-cypress-api:
cd e2e-testing/cypress/; npm test -- --spec src/api
lint:
ruff check --fix; ruff format
lint-check:
ruff check --no-fix && ruff format --check
########################
# Setup
submodule:
git submodule init; git submodule update
setup-cypress:
cd e2e-testing/cypress/; npm i
########################
# Frontend
front-setup-react:
cd fronts/react-redux-realworld-example-app/; npm i
front-run-react:
cd fronts/react-redux-realworld-example-app/;\
REACT_APP_BACKEND_URL="$${API_URL:=$(DEFAULT_API_URL)}"/api npm start
front-clean-react:
cd fronts/react-redux-realworld-example-app/; rm -r node_modules package-lock.json
front-setup-vue:
cd fronts/vue3-realworld-example-app/; npm i
front-run-vue:
cd fronts/vue3-realworld-example-app/;\
VITE_API_HOST="$${API_URL:=$(DEFAULT_API_URL)}" npm run dev -- --host
front-clean-vue:
cd fronts/vue3-realworld-example-app/; rm -r node_modules package-lock.json