-
Notifications
You must be signed in to change notification settings - Fork 129
/
Copy pathMakefile
29 lines (24 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
all: chair_data estate_data verification_data
refresh_chair_data:
find ../webapp/frontend/public/images/chair -name *.png | xargs rm
refresh_estate_data:
find ../webapp/frontend/public/images/estate -name *.png | xargs rm
chair_data: make_chair_data.py
mkdir -p result/draft_data/chair
python3 make_chair_data.py
cp result/2_DummyChairData.sql ../webapp/mysql/db/2_DummyChairData.sql
cp result/chair_condition.json ../webapp/fixture/chair_condition.json
estate_data: make_estate_data.py
mkdir -p result/draft_data/estate
python3 make_estate_data.py
cp result/1_DummyEstateData.sql ../webapp/mysql/db/1_DummyEstateData.sql
cp result/estate_condition.json ../webapp/fixture/estate_condition.json
verification_data: ./make_verification_data
rm -rf ./result/verification_data
docker-compose -f ../webapp/docker-compose/go.yaml down -v
docker-compose -f ../webapp/docker-compose/go.yaml up -d mysql api-server
wayt http -u "http://localhost:1323/api/estate/search/condition"
curl -X POST "localhost:1323/initialize"
go build -o ./make_verification_data/main ./make_verification_data/*.go
./make_verification_data/main -fixture-dir ../webapp/fixture -dest-dir ./result/verification_data -target-url http://localhost:1323
docker-compose -f ../webapp/docker-compose/go.yaml down -v