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:
Example | Technologies | Use case |
---|---|---|
Node.js Hello World example | Node.js, JavaScript | An 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 example | Node.js, JavaScript | Example of using Pre and Post decorators to send a message to a Slack Channel. |
Node.js Call CRUD example | Node.js, JavaScript | Example of a Node.js microservice which enables to use Mia-Platform Custom Plugin to access the CRUD. |
Node.js Custom Plugin with Mongo example | Node.js, JavaScript, MongoDB | Example of using Mia-Platform Custom Plugin and queries to access MongoDB. |
GraphQL Custom Plugin example | Node.js, JavaScript, GraphQL | Example 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 example | Spring Boot, Java | An example that shows how to build a simple Spring Boot microservice. |
Spring Boot Pre/Post decorators example | Spring Boot, Java | Example of using Pre and Post decorators in a Spring Boot microservice. |
Go Hello World example | Go | An example that shows how to build a simple microservice in Go. |
Go Call CRUD example | Go | Example of a Go microservice which enables to use Mia-Platform Custom Plugin to access the CRUD. |
Rust Hello World example | Rust | An example that shows how to build a simple microservice in Rust. |
C++ Oat++ Hello World example | Oat++, C++ | An example that shows how to use the Oat ++ library to set-up a microservice. |
Python Tornado Hello World example | Tornado, Python | An example that shows how to build a simple microservice in Python using Tornado framework. |
Python Falcon Hello World example | Falcon, Python | An example that shows how to build a simple microservice in Python using Falcon framework. |
TypeScript LC-39 example | Node.js, LC-39, TypeScript | An example that shows how to build a simple microservice in TypeScript, using LC-39 module. |
Ktor Hello World example | Ktor, Kotlin | An example that shows how to build a simple microservice in Kotlin using Ktor framework. |
Ktor multi-module Hello World example | Ktor, Kotlin | An example that shows how to build a simple microservice in Kotlin using Ktor framework with multiple modules. |
Rest2Kafka Example | Ktor, Kotlin | An example that shows how to build a Ktor Web Server which produces Kafka messages. |
Kafka2Rest Example | Ktor, Kotlin | An 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 Create your Company Marketplace page for further information.