-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (35 loc) · 1.07 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
.PHONY: start-containers
start-containers:
@echo "Starting containers..."
docker compose up -d
.PHONY: generate-cursor-files
generate-cursor-files:
@echo "Generating indexer cursor files..."
rm -f packages/indexer/data/cursorV2 && touch packages/indexer/data/cursorV2
.PHONY: setup-es-index
setup-es-index: bin/setup.sh
@echo "Setting up Elasticsearch listings index"
bash bin/setup.sh
setup: start-containers generate-cursor-files setup-es-index
.PHONY: index-events
index-events:
@echo "Indexing storefront listings events..."
cd packages/indexer && pnpm run dev
.PHONY: start-api
start-api:
@echo "Starting API..."
cd packages/api && npm start
.PHONY: start-client
start-client:
@echo "Starting React web server..."
cd packages/client && cp .env.example .env && npm start
.PHONY: stop-containers
stop-containers:
@echo "Stopping containers..."
docker compose down
.PHONY: delete-es-index
delete-es-index:
@echo "Deleting Elasticsearch listings index"
curl -XDELETE localhost:9200/listings
@echo "Deleting Elasticsearch alerts index"
curl -XDELETE localhost:9200/alerts