Skip to content

Commit 816ecd6

Browse files
committed
add view-producer readme
1 parent c6ebb27 commit 816ecd6

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

view-producer/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## View-Producer
2+
3+
View-Producer reads `product-views.json` file by line by and transform the line to `Event` class and writes to Kafka.
4+
5+
## Diagram
6+
7+
![diagram](images/view-producer_diagram.jpg)
8+
9+
## Dependencies
10+
11+
Java-11
12+
Maven
13+
Kafka
14+
15+
## Install
16+
17+
mvn clean install
18+
19+
20+
## Run
21+
22+
First you write path of `product-views.json` to `json.path` in `application.properties` file at `src/resources`.
23+
24+
And then, you write `kafka.bootstrapAddress`, `kafka.topic` in `application.properties`.
25+
26+
For execute the project, in root directory run below command:
27+
28+
mvn spring-boot:run
52.8 KB
Loading
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
kafka.bootstrapAddress=localhost:9092
2-
kafka.topic=deneme
1+
kafka.bootstrapAddress=##
2+
kafka.topic=##
33

4-
json.path=/home/sade/hepsiburada-case/product-views.json
4+
json.path=##
55

6-
server.port=8094
6+
server.port=8091

0 commit comments

Comments
 (0)