Microservice kotlin micronaut

Overview

Arquitetura de Microserviços

image

Instruções

Criando rede no docker:

docker network create micronaut-net

Criando imagem Postgresql no Docker:

docker run --name ms-postgres --network micronaut-net -e "POSTGRES_PASSWORD=123456" -p 5432:5432 -d postgres

Criando imagem Redis no Docker:

docker run --name ms-redis --network micronaut-net -p 6379:6379 -d redis
docker exec -it ms-redis redis-cli

Criando imagem Mongo no Docker:

docker run -p 27017:27017 --name ms-mongo --network micronaut-net -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=e296cd9f mongo
docker run -it --rm --network micronaut-net mongo mongo --host ms-mongo -u root -p e296cd9f --authenticationDatabase admin vendas

Criando imagem Kafka no Docker:

docker run -d --name zookeeper-server --network micronaut-net -e ALLOW_ANONYMOUS_LOGIN=yes bitnami/zookeeper:latest
docker run -d --name kafka-server --network micronaut-net -e ALLOW_PLAINTEXT_LISTENER=yes -e KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper-server:2181 bitnami/kafka:latest

Criando imagem Consul no Docker:

docker run --network micronaut-net -p 8500:8500 --name ms-consul consul

Criando imagem gateway no Docker:

docker build -t api-gateway:v1 .
docker run -p 9090:9090 --name api-gateway --network micronaut-net api-gateway:v1

Criando imagem veiculo-service no Docker:

docker build -t veiculo-service:v1 .
docker run -P --network micronaut-net veiculo-service:v1

Criando imagem loja-service no Docker:

docker build -t loja-service:v1 .
docker run -P --network micronaut-net loja-service:v1

Criando imagem relatorio-service no Docker:

docker build -t relatorio-service:v1 .
docker run -P --network micronaut-net relatorio-service:v1
You might also like...
An example of a SQS consumer using Micronaut

Micronaut 3.0.3 Documentation User Guide API Reference Configuration Reference Micronaut Guides Feature http-client documentation Micronaut HTTP Clien

Microservice-arch - Basic micro service architecture using spring boot

Readme 4 applications are created: discovery-service: every application register

Meetups microservice, applying tactical DDD building blocks and in a real example.
Meetups microservice, applying tactical DDD building blocks and in a real example.

Meetups microservice: Applying tactical DDD Description This project is a practical example to understand the tactical patterns/building-blocks that d

Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Kotlin_practice_problems Repo: Programming problems with solutions in Kotlin to help avid Kotlin learners to get a strong hold on Kotlin programming.

Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP)

Mockative Mocking for Kotlin/Native and Kotlin Multiplatform using the Kotlin Symbol Processing API (KSP). Installation Mockative uses KSP to generate

Kotlin-oop - Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura.

Projeto React OOP Repositório criado para ser utilizado pelo projeto de Kotlin OOP desenvolvido em Kotlin nas aulas feitas através da plataforma Alura

Kotlin-koans - Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax

kotlin-koans-edu Kotlin Koans are a series of exercises to get you familiar with

Kotlin TodoMVC – full-stack Kotlin application demo

Kotlin full stack TodoMVC This project is an example implementation of the TodoMVC app written in Kotlin. More specifically, it's the Kotlin port of t

Integration Testing Kotlin Multiplatform Kata for Kotlin Developers. The main goal is to practice integration testing using Ktor and Ktor Client Mock
Integration Testing Kotlin Multiplatform Kata for Kotlin Developers. The main goal is to practice integration testing using Ktor and Ktor Client Mock

This kata is a Kotlin multiplatform version of the kata KataTODOApiClientKotlin of Karumi. We are here to practice integration testing using HTTP stub

Owner
Developer Java Junior (Full Stack)
null
Curso microservices kotlin micronaut

Arquitetura de Microserviços Instruções Criando rede no docker: docker network create micronaut-net Criando imagem Postgresql no Docker: docker run -

null 0 Oct 20, 2021
🐹 Kotlin microservice to aid slash command creation for Nino.

slash-commands ?? .Kotlin microservice to aid slash command creation for Nino. More of this README will be fixed up once the first release is here. Li

Nino 5 Oct 1, 2021
kotlin micronaut sample

Micronaut 3.1.3 Documentation User Guide API Reference Configuration Reference Micronaut Guides Feature data-r2dbc documentation Micronaut Data R2DBC

Hodong 0 Nov 1, 2021
Aplicação Micronaut GRPC utilizando Kotlin e arquitetura Hexagonal

micronaut-grpc-demo Aplicação Micronaut GRPC utilizando Kotlin e arquitetura Hexagonal #Baixando e configurando um container Postgres: Postgres: docke

Paulo César de Souza 0 Nov 15, 2021
Créer un microservice avec Spring Boot et Kotlin

?? Créer un microservice avec Spring Boot et Kotlin Ce dépôt contient les slides et la démo du talk "créer un microservice avec Spring Boot et Kotlin"

François Delbrayelle 0 Nov 28, 2021
Simple use of Micronaut + Kotlin, implementation of UserContext

Micronaut 3.1.4 Documentation User Guide API Reference Configuration Reference Micronaut Guides Feature jdbc-hikari documentation Micronaut Hikari JDB

null 0 Jan 16, 2022
Muhammad Valian Masdani 2 Jul 5, 2022
Kotlin-ES-CQRS-Microservice

Kotlin Spring Reactive EventSourcing and CQRS with PostgreSQL, Kafka, MongoDB, tracing and monitoring ?? ✨ ?? ??‍?? Full list what has been used: Spri

Alexander 11 Sep 28, 2022
Collection of Rewrite Recipes pertaining to the JHipster web application & microservice development platform

Apply JHipster best practices automatically What is this? This project implements a Rewrite module that applies best practices and migrations pertaini

OpenRewrite 5 Mar 7, 2022
Micronaut Microkaos Application

Micronaut 3.1.3 Documentation User Guide API Reference Configuration Reference Micronaut Guides Push GraalVM Native Image To Docker Registry Workflow

Albert Kuliński 0 Nov 6, 2021