Golang / Go Crash Course 03 | Implementing Clean Architecture principles in our REST API

preview_player
Показать описание

Our application is going to be: Independent of frameworks, Testable, Independent of UI, Independent of Database and Independent of any external factors.

Elementor: The Best Page Builder for Wordpress.

Linode: Predictable Pricing and an easy to use platform to deploy your applications in a reliable global infrastructure.

➥➥ Learn even more! ➥➥

➥➥➥ RECOMMENDED TOOLS I USE ➥➥➥

AFFILIATE DISCLOSURE: This video and description may contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. I won't put anything here that I haven't verified and/or personally used myself.

#Golang #Clean_Architecture #Uncle_Bob
Рекомендации по теме
Комментарии
Автор

Mmm. In Go, AFAIK, the best practice is declare interfaces in clients. "Accept interfaces, return structs". Interface and struct in the same file, its looks like java style.

roy_c
Автор

How can I like this video twice? It answers all my questions.

adelekeoladapo
Автор

Thank you so much for your efforts. I was able to create a new router using Fiber and it worked really well using this clean architecture!

alhzz
Автор

This is the best video I have seen of golang. you will make me earn a lot of money.

leandrotorres
Автор

This is so cool! Love the plug n play style of the architecture, thanks for explaining it so well.

srjnm
Автор

Thank you for posting this helpful series! One question I have is in Uncle Bob's Clean Architecture Blog, he wrote: "The overriding rule that makes this architecture work is The Dependency Rule. This rule says that source code dependencies can only point inwards. Nothing in an inner circle can know anything at all about something in an outer circle. In particular, the name of something declared in an outer circle must not be mentioned by the code in the an inner circle. That includes, functions, classes. variables, or any other named software entity."

markfcal
Автор

Thank you for your efforts,
It will be nice to see an other crash course of implementing clean architecture principles in a REST API in Node.js

abessesmahi
Автор

I really appreciate your efforts in making this video for us. It really helps the beginners. Keep up the good work man.

trinadhkoya
Автор

I liked the video and your efforts. I had one question about it. Why use global variables when you can instantiate the repo, controller, etc in the struct itself? What's the advantage over struct variable?

rexey
Автор

I would like this video again if I could. Thanks a lot.

robertwillis
Автор

Thank you for the tutorial. just small tip, please use diagrams, they ease your job and makes us grasp much easier.

medi
Автор

You are applying Java/Spring framework into Golang, no right or wrong, probably it's another option for Golang implementation

pmpjim
Автор

"Independent of frameworks" is what made me watch the entire video. Could you please implement Java code independent of Spring? I would be your Patron.

adipratapsinghaps
Автор

A great tutorial thanx a lot, it would be great if you could prepare a similar tutorial ( REST API & clean architecture ) using Node and TypeScript.

anisghliss
Автор

You've saved me tons of hours of researching with you Golang videos, thank you so much!
If we are implementing Gin as a router, the router interface needs to be changed? like something to receive a ResponseWritter and Request, but that can also receive gin Context? Thanks in advance for your answer :)

brandonmochi
Автор

Could you add mysql to this project or gorm?

robertwillis
Автор

Thanks for the great tutorial. Your work is greatly appreciated. My question is what if you have more entities instead of one like in your example. I mean like what if there is POST, USER, COMMENTS etc

appystore
Автор

Hello, thank you for clean lecture. I want to ask that, If I need to use other services in one service, for examle in ProductService, I need to call CompanyService and etc. Then I have to inject CompanyService there. So I need to create CompanyRepo also. In such a multiple injection states, doesn't it be complicated? Can you give an example like a multiple Service usage in a service?

kubrakesici
Автор

Really liked a lot the way u have explained while creating REST API. Thanks a ton for this. Can we have code / github repo for this course?

imteyazraja
Автор

The repository should be injected into the service, not instantiated by the service itself.

jarriabidi
visit shbcf.ru