Version: 8.x (Current)

Examples

An Example provides sample code addressing a specific use-case, it's a ready-to-use model to create your microservice.

Currently available examples are:

ExampleTechnologiesUse case
Node.js Hello World exampleNode.js, JavaScriptAn example that exposes a route and replies with a HelloWorld JSON: it allows you to see how Node.js microservice and tests are done.
Node.js Pre/Post decorators exampleNode.js, JavaScriptExample of using Pre and Post decorators to send a message to a Slack Channel.
Node.js Call CRUD exampleNode.js, JavaScriptExample of a Node.js microservice which enables to use Mia-Platform Custom Plugin to access the CRUD.
Node.js Custom Plugin with Mongo exampleNode.js, JavaScript, MongoDBExample of using Mia-Platform Custom Plugin and queries to access MongoDB.
GraphQL Custom Plugin exampleNode.js, JavaScript, GraphQLExample of integrating GraphQL in a Node.js microservice.
.NET Hello World example.NET, C#An example that shows how to build a simple .NET microservice.
Spring Boot Hello World exampleSpring Boot, JavaAn example that shows how to build a simple Spring Boot microservice.
Spring Boot Pre/Post decorators exampleSpring Boot, JavaExample of using Pre and Post decorators in a Spring Boot microservice.
Go Hello World exampleGoAn example that shows how to build a simple microservice in Go.
Go Call CRUD exampleGoExample of a Go microservice which enables to use Mia-Platform Custom Plugin to access the CRUD.
Rust Hello World exampleRustAn example that shows how to build a simple microservice in Rust.
C++ Oat++ Hello World exampleOat++, C++An example that shows how to use the Oat ++ library to set-up a microservice.
Python Tornado Hello World exampleTornado, PythonAn example that shows how to build a simple microservice in Python using Tornado framework.
Python Falcon Hello World exampleFalcon, PythonAn example that shows how to build a simple microservice in Python using Falcon framework.
TypeScript LC-39 exampleNode.js, LC-39, TypeScriptAn example that shows how to build a simple microservice in TypeScript, using LC-39 module.
Ktor Hello World exampleKtor, KotlinAn example that shows how to build a simple microservice in Kotlin using Ktor framework.
Ktor multi-module Hello World exampleKtor, KotlinAn example that shows how to build a simple microservice in Kotlin using Ktor framework with multiple modules.
Rest2Kafka ExampleKtor, KotlinAn example that shows how to build a Ktor Web Server which produces Kafka messages.
Kafka2Rest ExampleKtor, KotlinAn example that shows how Kafka messages can be consumed and handled through HTTP REST calls.

More examples are in development, but if you want, you can create your examples by yourself.

tip

Would you like your example to appear here? Send an email with all the details to info@mia-platform.eu