-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 719 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 719 Bytes
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
init: compose install codegen topics
echo "Init done"
install:
cd libs/utils && cargo build
cd apps/producer && cargo build
cd apps/consumer && cargo build
build: install
codegen:
quicktype -s schema ./specs/message.jsonschema.json -o ./libs/utils/src/message.rs --visibility public
topics:
docker-compose exec kafka kafka-topics --create --topic messages --bootstrap-server localhost:9092 --if-not-exists
compose:
docker-compose up -d
clean:
docker-compose down
test:
cd libs/utils && cargo test
cd apps/producer && cargo test
cd apps/consumer && cargo test
fix:
cd libs/utils && cargo fix --allow-dirty
cd apps/producer && cargo fix --allow-dirty
cd apps/consumer && cargo fix --allow-dirty