Código da palestra sobre Microsserviços usando Gokit

Overview

talk-microservices-gokit

How to build

COMPLETAR

Using the services

Auth

curl -X "POST" "http://localhost:8081/v1/auth" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
     -d $'{
  "email": "[email protected]",
  "password": "1234567"
}'

The result should be a token, like:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGdtYWlsLmNvbSIsImV4cCI6MTU2ODkwNTM3MCwiaWF0IjoxNTY4OTAxNzQwLCJuYmYiOjE1Njg5MDE3NDB9.07my1r33iKhfUuR3XK87YomK00Fcio_Ve7ZXlaq0Jb0"
}

Feedback

You need to use the token generated by the Auth service:

curl -X "POST" "http://localhost:8082/v1/feedback" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
	 -H 'Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGdtYWlsLmNvbSIsImV4cCI6MTU2ODkwNTM3MCwiaWF0IjoxNTY4OTAxNzQwLCJuYmYiOjE1Njg5MDE3NDB9.07my1r33iKhfUuR3XK87YomK00Fcio_Ve7ZXlaq0Jb0' \
     -d $'{
  "title": "Feedback test",
  "body": "Feedback body"
}'

Vote

You need to use the token generated by the Auth service:

curl -X "POST" "http://localhost:8083/v1/vote" \
     -H 'Accept: application/json' \
     -H 'Content-Type: application/json' \
	 -H 'Authorization:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVtaW5ldHRvQGdtYWlsLmNvbSIsImV4cCI6MTU2ODkwNTM3MCwiaWF0IjoxNTY4OTAxNzQwLCJuYmYiOjE1Njg5MDE3NDB9.07my1r33iKhfUuR3XK87YomK00Fcio_Ve7ZXlaq0Jb0' \
     -d $'{
  "talk_name": "Go e Microserviços",
  "score": "10"
}'
Owner
Elton Minetto
Software developer, teacher, speaker, open source evangelist, tech leader. Tech Manager at @betrybe
Elton Minetto
String Service. Microservice example using gokit library

Example of Microservices using go-kit Go kit is a collection of Go (golang) packages (libraries) that help you build robust, reliable, maintainable mi

Gabriel Camps 0 Dec 6, 2021
Una prueba técnica: Servicio Golang REST API local, sobre Docker, gRPC, AWS Serverless y sobre Kubernetes en AWS EC2

Una prueba técnica: Servicio Golang REST API local, sobre Docker, gRPC, AWS Serverless y sobre Kubernetes en AWS EC2

Emilio del Cañal Calleja 4 May 7, 2022
envio de email via SMTP com anexo usando Go

gosendmail - SMTP This repo is a simple net/smtp abstraction for sending emails using SMTP. With it we can send emails With copy, with blind copy and

Jefferson Otoni Lima 8 Dec 16, 2021
Serviço de consulta de CEP Serverless usando Lambda function em Golang

Consulta CEP Serverless Consulta CEP foi desenvolvido com o objetivo de facilitar a vida do desenvolvedor que precisa de um serviço de consulta de CEP

Otavio Baldan 1 Oct 26, 2021
Pasaje de código de JS a Golang. Ejemplo de funcionamiento de una blockchain simple.

blockchain-dummy-test Pasaje de código de JS a Golang. Ejemplo de funcionamiento de una blockchain simple. Fuente: https://medium.com/geekculture/bloc

null 0 Dec 12, 2021
Code for the website / Código para o site

Site crdpa.net Code for the new website This is the frontend and backend code for my new website. It is for my use only. If you want to use it, you ar

Cristhyano 8 May 11, 2022
GoKit CLI

GoKit CLI This project is a more advanced version of gk. The goal of the gokit cli is to be a tool that you can use while you develop your microservic

Kujtim Hoxha 702 Aug 3, 2022
String Service. Microservice example using gokit library

Example of Microservices using go-kit Go kit is a collection of Go (golang) packages (libraries) that help you build robust, reliable, maintainable mi

Gabriel Camps 0 Dec 6, 2021
Primer proyecto OSS en comunidad sobre cache en memoria.

GoKey ?? Concepto del proyecto: Sistema de base de datos clave valor, distribuido. En forma de cache en memoria. Especificaciones: Para conjuntar inf

Gophers LATAM 20 Feb 18, 2022
Repositório para a aula sobre integração do containerd com Golang

Integrando containers nativamente usando Golang Este é o código finalizado da aplicação Já pensou em uma alternativa ao Docker? Que tal manipular cont

Rocketseat Experts Club 3 May 4, 2021
Prueba de concepto: Boletia, una aplicación para venta de boletos, basada en microservicios event-driven. Desarrollada sobre AWS Serverless: Api Gateway, Lambda, DynamoDB, DynamoDB Streams

Prueba de concepto: Boletia, una aplicación para venta de boletos, basada en microservicios event-driven. Desarrollada sobre AWS Serverless: Api Gatew

Emilio del Cañal Calleja 1 May 7, 2022
Taller explicativo sobre construcciones multi-stage de Docker

TALLER: DOCKER MULTI-STAGE Y SUS BENEFICIOS PRACTICOS MULTI-STAGE Funcionalidad de Docker que permite definir multiples imagenes intermedias de Docker

Douglas Omar Arreola Martínez 0 Dec 28, 2021