This is a very simple example about how to build a microservice in Go. It’s meant for a quick Go and Microservices tutorial series covering from the a RESTful API to gRPC on Kubernetes. The purpose of this microservice is a catalog of movies. The code is at https://github.com/johandry/micro-media-service and every section is a branch, clone the repo and change branch for every section. git clone https://github.com/johandry/micro-media-service A simple RESTful API Let’s start with a simple RESTfull API by making a simple web server.
Terraform is an amazing tool made by HashiCorp to describe infrastructure as a code. Terraform allow us to build, change, and do versioning of the infrastructure safely and efficiently. The use of Terraform is quite simple, after download the binary you need to create a terraform configuration file or files to describe the infrastructure to build. The first time you have to initialize terraform (terraform init) to download all the dependencies and then apply the changes (terraform apply).
Here is everything I did to create this blog with Hugo and publish it on GitHub. I don’t have to do it again but may help others to do the same. You’ll need Hugo and Git. Once you have Hugo, create the blog with: brew install hugo hugo new site blog cd blog git init The next step is to choose a theme, which took me a long time.
Is it? Nah! I think this is my 3rd attempt to start a blog. I started with johandry.blogspot.com then I started a cool project with PerlDancer and created this other blog perlondancer.blogspot.com. Also, there were a couple of failed attempts with WordPress.com. I’ll continue posting, I have some ideas and projects that I have in my Github. Most of them related to Go and DevOps. Stay tuned!