-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
36 lines (28 loc) · 965 Bytes
/
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
all:
cat ./Makefile
local-mysql:
docker run -d --name local-mysql --platform linux/amd64 -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=dangdangwalk mysql:8.4.0 \
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
local-mysql-e2e:
docker run -d --name local-mysql --platform linux/amd64 -p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test mysql:8.4.0 \
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
local-redis:
docker run -d --name local-redis --platform linux/amd64 -p 6379:6379 \
redis:7.0.15 redis-server
docker-build:
cd ./backend/server && \
docker-compose -f docker-compose-dev.yml build
docker-up:
cd ./backend/server && \
docker-compose -f docker-compose-dev.yml up
docker-down:
cd ./backend/server && \
docker-compose -f docker-compose-dev.yml down
front-start:
cd ./frontend && \
npm run dev
backend-start:
cd ./backend/server && \
npm run start