Skip to content

Commit

Permalink
chore: create application launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 15, 2023
1 parent 839d18e commit ccee1d8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import entities.events.Event
import application.presenter.EventConsumer
import application.presenter.EventPublisher
import application.services.EventService
import infrastructure.kafka.KafkaPublisher
import infrastructure.signalr.SignalRClient


/*
* Copyright (c) 2023. Smart Operating Block
*
Expand All @@ -7,8 +15,13 @@
*/

/**
* Template for kotlin projects.
* The application launcher.
*/
fun main() {
println("Hello World from Kotlin Template")

val publisher: EventPublisher<Event<Any>> = KafkaPublisher()
val consumer: EventConsumer<String> = SignalRClient()

val service: EventService<String> = EventService(publisher, consumer)
service.start()
}

0 comments on commit ccee1d8

Please # to comment.