Skip to main content
Version: 12.x (Current)

Examples

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

When an example is created in a project, a new repository is created: just clone it and start coding to enrich it with your custom features.

Mia-Platforms currently supports the following examples:

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.

Their code is open source, feel free to open a PR to contribute to any of them!

If you want to create your own example, head to the Contributing Overview for further information.