di_example

Code example showing how dependency injection works using Guice. It creates the appropriate objects for dev and prod environments.

Check src/main/kotlin/App.kt to start following the example. It showcases dependency injection for constructor and method.

How to run

To run the example run the main method with either --prod or --dev flag.

GitHub

View Github