This is an POC using microservice oriented JVM framework named Micronaut, that supports differents languages as Kotlin, used in this case. Also it uses MongoDB as datasource. In this example Maven is the dependency manager, but it is posible use Gradle. Take a look Micronaut documentation: https://docs.micronaut.io/latest/guide/index.html
In order to run this project is necesary set up Mongo database and run the project:
- Use docker to run the database
docker run -d -p 27017:27017 --name some-mongo bitnami/mongodb:latest
- Compile the project
mvn clean -U install
- Run maven command
./mvnw exec:exec
- This branch is implemented with asynchronous Mongo driver: https://github.com/migangqui/micronaut-example/tree/async_mongo
- This branch is implemented with synchronous Mongo driver: https://github.com/migangqui/micronaut-example/tree/sync_mongo