Skip to content

vh/maritima

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maritima

Armeria on steroids

Install

Maven

<dependencies>
    <dependency>
        <groupId>com.github.vh</groupId>
        <artifactId>maritima</artifactId>
        <version>0.26.1</version>
    </dependency>
</dependencies>

Gradle

implementation 'com.github.vh:maritima:0.26.1'

Usage

   Maritima
        // Guice module (inherits com.google.inject.AbstractModule)
        .build(new ApplicationModule())
        
        // Guice injector
        .init(injector -> {
            Flyway.configure()
                .dataSource(injector.getInstance(DataSource.class))
                .load()
                .migrate();
        })
        
        // GRPC services
        .services(
            TestService.class
        )
                
        // Port
        .start(8080);