Following the idea of the previous post, we will get the project we have started and will add now a database connection, and a user CRUD API. It will be really simple, with simple validations, and simple error handling, but I think it will give you some ideas about how the modules and files are isolated, and how to handle HTTP and database operations, read config from environment variables, and also we will use a
docker-compose to provide our database service. Let’s get started!
Before start in this new job at Mercado Livre this year, I was already in love with Golang, made a small API for internal use in my previous job and some side projects, but nothing really production ready.
In the last three months, I’ve had an amazing immersion and learned a lot from all colleagues and teammates and I think that it would be nice to share my experiences and what a learned by building a project using the good practices I’m learning.
Software Engineer @ Mercado Livre, Father of 3 amazing children/teens and someone who loves technology