TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Dockerized RESTful API Application Using Go – Microservices

2 pointsby dumindunuwanover 5 years ago

1 comment

dumindunuwanover 5 years ago
Hi,<p>This is the very beginning of this series. As the first step, we are going to discuss about “How to build a Dockerized RESTful API application using Go”.<p>In this post, we are discussing,<p>1. Creating a new Go project.<p>2. Adding initial HTTP server.<p>3. Adding initial Docker files.<p>4. Adding initial configurations.<p>5. Adding Chi router.<p>6. Adding Zerolog logger.<p>7. Adding DB docker file.<p>8. Adding initial database migrations.<p>9. Adding GORM.<p>10. Adding initial books API routes.<p>11. Implementing RESTful handlers.<p>12. Adding Validator.v9.<p>The completed project can be found in <a href="https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;myapp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;myapp</a> repository. And I’ll upload the same content to <a href="https:&#x2F;&#x2F;learning-cloud-native-go.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;learning-cloud-native-go.github.io&#x2F;</a> which uses Docusaurus in the upcoming days. Hope it will be more structured and easy to see the big picture.<p>Also, I am not a native English speaker. So, if you found any mistake or something I need to be changed, even a spelling or a grammar mistake, please let me know.<p>⭐ Contribute! : <a href="https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;website" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;website</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;myapp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;learning-cloud-native-go&#x2F;myapp</a><p>⭐ Buy me a coffee! : <a href="https:&#x2F;&#x2F;www.buymeacoffee.com&#x2F;dumindu" rel="nofollow">https:&#x2F;&#x2F;www.buymeacoffee.com&#x2F;dumindu</a><p>⭐ Hire me! : <a href="https:&#x2F;&#x2F;github.com&#x2F;dumindu&#x2F;hire-me&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dumindu&#x2F;hire-me&#x2F;</a><p>Thanks