Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 858 Bytes

README.md

File metadata and controls

42 lines (36 loc) · 858 Bytes

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);