![MFK in Tech](/img/default-banner.jpg)
- 10
- 19 424
MFK in Tech
Registrace 2. 11. 2022
MFK in Tech is my learning journal collection. I am trying to learn in public and share the things I've learning in software world.
Thanks for watching!
Thanks for watching!
Creating endpoint using GORM Scopes in Golang
🚀 Explore the power of Golang and GORM as we delve into the scopes feature in this tutorial. Learn how to leverage GORM's scopes to streamline database queries and enhance control in your Golang applications.
Chapters:
00:00 Introduction
00:40 Order API
04:49 Creating a new endpoint
08:35 Scopes Example 1
16:49 Scopes Example 1
19:32 Final
🔍 What you'll learn:
- Harnessing the power of GORM scopes for using soft delete db tables
- Reusing same db functions so you can get rid of code duplications for conditions
📚 Resources and Links:
Github source code and commands: github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/gorm-scopes
Gorm: gorm.io/
Gorm Scopes: gorm.io/docs/scopes.html
Postgres Docker: hub.docker.com/_/postgres
Guid Generator: guidgenerator.com/
💬 Stay Connected:
Linkedin: www.linkedin.com/in/mehmetfiratkomurcu/
Twitter: mfkintech
Blog: firatkomurcu.com/
Github: github.com/MehmetFiratKomurcu
👍 If you find this video helpful, don't forget to like, subscribe, and share it with your fellow developers. Your support encourages me to create more content like this!
#GoLang #ProgrammingTutorial #Coding #SoftwareDevelopment #RESTfulAPI #GORM #PostgreSQL #BackendDevelopment #WebDevelopment
Chapters:
00:00 Introduction
00:40 Order API
04:49 Creating a new endpoint
08:35 Scopes Example 1
16:49 Scopes Example 1
19:32 Final
🔍 What you'll learn:
- Harnessing the power of GORM scopes for using soft delete db tables
- Reusing same db functions so you can get rid of code duplications for conditions
📚 Resources and Links:
Github source code and commands: github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/gorm-scopes
Gorm: gorm.io/
Gorm Scopes: gorm.io/docs/scopes.html
Postgres Docker: hub.docker.com/_/postgres
Guid Generator: guidgenerator.com/
💬 Stay Connected:
Linkedin: www.linkedin.com/in/mehmetfiratkomurcu/
Twitter: mfkintech
Blog: firatkomurcu.com/
Github: github.com/MehmetFiratKomurcu
👍 If you find this video helpful, don't forget to like, subscribe, and share it with your fellow developers. Your support encourages me to create more content like this!
#GoLang #ProgrammingTutorial #Coding #SoftwareDevelopment #RESTfulAPI #GORM #PostgreSQL #BackendDevelopment #WebDevelopment
zhlédnutí: 3 714
Video
Crafting RESTful APIs with Go: Leveraging GORM & PostgreSQL
zhlédnutí 2,2KPřed 3 měsíci
🚀 Dive into Go (Golang) and learn how to build a RESTful API with a clean architecture in this tutorial. We cover everything from setting up your environment, utilizing the GORM library for database operations with PostgreSQL, to creating and testing two key endpoints: Create Order and Get Order. Chapters: 00:00 Introduction 00:35 Postgres Docker Image 01:10 Gorm, Foldering, Creating Entities 0...
Swagger API Documentation with Swaggo in Golang
zhlédnutí 2,6KPřed 4 měsíci
🚀 Dive into the world of efficient API documentation with my latest tutorial! In this video, I'll walk you through the process of using Swaggo, a powerful library for Go (Golang), to create comprehensive Swagger documentation for your APIs. Chapters: 00:00 Introduction 00:30 Swaggo library 02:34 Fiber integration 05:28 GET endpoint documentation 08:36 POST endpoint documentation 🔍 What You'll L...
Unlocking Golang Fiber: A Practical Approach to Endpoints, Middlewares and Validations
zhlédnutí 988Před 5 měsíci
Dive deep into the world of Golang with my latest tutorial focused on the Fiber library! 🚀 In this comprehensive video, we explore the powerful capabilities of Golang Fiber, guiding you through the essentials. 🔍 What You'll Learn: Endpoint Development: Step-by-step instructions on how to write endpoints using Fiber. Middleware Integration: Discover how to enhance your applications with middlewa...
ADRs: Unveiling the Developer's Past Choices
zhlédnutí 442Před 10 měsíci
In this video, we delve into Architecture Decision Records (ADRs), tools that unveil a developer's past choices. ADRs provide a standard method for documenting significant design decisions made during a project. These records clarify why a particular path was chosen, what alternatives were considered, and the implications of the decision. This video aims to help you understand what ADRs are, th...
Polling Publisher vs Log Tailing | Debezium Outbox Router | Outbox Pattern Part 2
zhlédnutí 452Před rokem
In this video, I continue to talk Outbox Pattern. I talk about Polling Publisher vs. Log Tailing, talk about their pros and cons. Do a demo with Debezium Outbox Event Router. #apachekafka #messaging #docker #programming #code #debezium #sqlserver Source Code github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/Outbox-Pattern-Part-2 Chapters: 0:00 Polling Publisher 03:55 Log Tailing 09:04 De...
Aggregate Kafka Messages with ksqlDB Tables | ksqlDB Part 2
zhlédnutí 278Před rokem
In this video, we are talking about what ksqlDB Table is, what happens when ksqlDB crashes down and how you can get table data out of kafka. #apachekafka #messaging #docker #programming #code Source Code github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/ksqlDB-part-2 Chapters: 0:00 What is ksqlDB Tables? 08:58 Get Table Data via Rest endpoint 10:23 What if ksqlDB Crashes? Resources: rock...
Filter Kafka Messages on the Fly | ksqlDB Part 1
zhlédnutí 567Před rokem
In this video, we are talking about what ksqlDB is, how to create a kafka stream and filter topic messages with it. #apachekafka #messaging #docker #programming Source Code github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/ksqlDB-part-1 Chapters: 00:00 Introduction 00:07 What is ksqlDB 01:18 Creating a Stream 03:16 Inserting into Stream 06:21 Basic Stream Filtering 06:49 Creating Complex...
How to Deliver Event Messages Successfully | Outbox Pattern
zhlédnutí 3,7KPřed rokem
In this video, we are talking about what Outbox Pattern is and see some example code in #dotnet, #sqlserver and #rabbitmq Source Code github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/Outbox-Pattern Don't forget to subscribe to my channel www.youtube.com/@mfkintech?sub_confirmation=1 Follow me on: Linkedin: www.linkedin.com/in/mehmetfiratkomurcu Twitter: mfkintech Blog: firat...
How to Inject Configurations Strongly Typed In Dotnet | Options Pattern
zhlédnutí 4,6KPřed rokem
In this video, we are talking about what is Options Pattern, why do we need it and how we can use it in DotNet. Source Code github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/Options-Pattern Chapters: 00:00 Introduction 00:07 City Status Endpoint 00:25 App Settings File 00:36 Using Options Pattern 01:02 Creating City Status Options 01:27 Binding Options to Configuration 02:13 Injecting Op...
Is there any way to provide route path in @Router as a variable ?
Hi, Swagger is a static ui actually, and I think setting the route with a variable make the api non-consistent, so I think you can't do that. If you are talking for getting id or something like that, then yes, you can. example: // @Router /orders/{id} [get] app.Get("/orders/:id", func(ctx *fiber.App)... hope I understand it correctly, if not, we can discuss further. thanks <3
Is there a way to change the swagger icon?
hi @verdisasmeka8114 I have looked at the documentation but couldn't find a way :/ sorry.
wow good bro.
thanks :) <3
Awesome video, can we auto generate without putting the swagger in each endpoint
Hi, for Swaggo library, you need to specify for each endpoint. I think there was a library that can do that but it had a cons. I researched it but couldn't find the library :( If I can find it, I will reply to here again <3
Amazing video man, It's very helpful to me : )
thanks :) <3
Good explanation
Thanks <3
Incredibly informative tutorial. Congrats!
Nice tutorial! Just a suggestion: I think you should increase font size of the IDE/Editor in next videos.
Hi Burak, thanks for the feedback! I will try to increase it in the next video <3
Thank you so much, we’re waiting for your new videos 🤩
Thank you for this informative video
Wonderful!
Could not find better explanation than this. Pure Gold! Waiting for more video to come on Microservice design pattern
Thank you! It was very informative
I have been looking for such an explanation and source for a long time. this video helped me a lot. thanks Firat
Teşekkürler Fırat Hocam
very nice explanation my dear friend
Good job! dont stop:)
Thanks Naser <3 :)
🔥🔥
👏
that’s it!
Thank you!
spoiler alert: you can't wait to apply after watching
That's right! :D
Great video !! If you could speak a little louder that would be great !
Thanks Rares <3 I've got the same feedback from someone as well, you are right. I'll keep this in mind.
What a nice how to video for Outbox Pattern. 💯
informative
Great video but you were a bit quiet, perhaps get closer to the mic :)
Hey Steve, didn't notice that :D Thanks for feedback, will get closer to microphone and check out some configs.
Awesome
Nice job, that was very interesting
Thanks Miguel!
Good job. I really like it. But keep calm. "compiling, compiling, com...." sounds to much like ADHD ;-).
Thanks for feedback Emme 🥰. I'm a little excited, will keep this in mind in future videos!
bulding, bulding, bulding 🥰
Awesome!!! Thank you!!! Anxiously waiting for new videos!!!
Thank you Igor <3
Good job! All great info! Can't wait to see more.
Thanks Richard!
👏
Very interesting! Didn't know about the snapshot and monitor nor the validation.
hey awesome vid! would be great if you could also add source code link with your videos, it'd be really helpful
Hey Zeeshan. To be honest, I forgot to add the source code 😅 thank you for feedback. Here is the link: github.com/MehmetFiratKomurcu/CZcams-Channel/tree/master/Options-Pattern
@@mfkintech thanks mate
👍
👑
🧿😍
thanks
🔥
🤓
🔥