MFK in Tech
MFK in Tech
  • 10
  • 19 424
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
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...

Komentáře

  • @VinothKumarBalasubramanian

    Is there any way to provide route path in @Router as a variable ?

    • @mfkintech
      @mfkintech Před dnem

      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

  • @verdisasmeka8114
    @verdisasmeka8114 Před měsícem

    Is there a way to change the swagger icon?

    • @mfkintech
      @mfkintech Před měsícem

      hi @verdisasmeka8114 I have looked at the documentation but couldn't find a way :/ sorry.

  • @thinnyofficial5688
    @thinnyofficial5688 Před 2 měsíci

    wow good bro.

  • @igboanugwocollins4452
    @igboanugwocollins4452 Před 3 měsíci

    Awesome video, can we auto generate without putting the swagger in each endpoint

    • @mfkintech
      @mfkintech Před 2 měsíci

      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

  • @shivamgour9610
    @shivamgour9610 Před 3 měsíci

    Amazing video man, It's very helpful to me : )

  • @juhairahamed5342
    @juhairahamed5342 Před 5 měsíci

    Good explanation

  • @emirtunacar6025
    @emirtunacar6025 Před 5 měsíci

    Incredibly informative tutorial. Congrats!

  • @izniburak
    @izniburak Před 5 měsíci

    Nice tutorial! Just a suggestion: I think you should increase font size of the IDE/Editor in next videos.

    • @mfkintech
      @mfkintech Před 5 měsíci

      Hi Burak, thanks for the feedback! I will try to increase it in the next video <3

  • @buketsenturk
    @buketsenturk Před 5 měsíci

    Thank you so much, we’re waiting for your new videos 🤩

  • @esrakblt
    @esrakblt Před 5 měsíci

    Thank you for this informative video

  • @selcukdoven
    @selcukdoven Před 5 měsíci

    Wonderful!

  • @vivek.tiwary
    @vivek.tiwary Před 9 měsíci

    Could not find better explanation than this. Pure Gold! Waiting for more video to come on Microservice design pattern

  • @user-tq3ql4jk4e
    @user-tq3ql4jk4e Před 9 měsíci

    Thank you! It was very informative

  • @cihangunayyldz2275
    @cihangunayyldz2275 Před 10 měsíci

    I have been looking for such an explanation and source for a long time. this video helped me a lot. thanks Firat

  • @emrekarapnar117
    @emrekarapnar117 Před 10 měsíci

    Teşekkürler Fırat Hocam

  • @muslumozbulur7893
    @muslumozbulur7893 Před 10 měsíci

    very nice explanation my dear friend

  • @nasermasri9954
    @nasermasri9954 Před rokem

    Good job! dont stop:)

  • @brkyazan
    @brkyazan Před rokem

    🔥🔥

  • @berfinmaa
    @berfinmaa Před rokem

    👏

  • @yunusemregormus201
    @yunusemregormus201 Před rokem

    that’s it!

  • @IgorChistruga
    @IgorChistruga Před rokem

    Thank you!

  • @ecenigiz2817
    @ecenigiz2817 Před rokem

    spoiler alert: you can't wait to apply after watching

  • @rareschelariu5327
    @rareschelariu5327 Před rokem

    Great video !! If you could speak a little louder that would be great !

    • @mfkintech
      @mfkintech Před rokem

      Thanks Rares <3 I've got the same feedback from someone as well, you are right. I'll keep this in mind.

  • @oguzerdierkmen3512
    @oguzerdierkmen3512 Před rokem

    What a nice how to video for Outbox Pattern. 💯

  • @zeynepcansuyldrm1787

    informative

  • @jspesh
    @jspesh Před rokem

    Great video but you were a bit quiet, perhaps get closer to the mic :)

    • @mfkintech
      @mfkintech Před rokem

      Hey Steve, didn't notice that :D Thanks for feedback, will get closer to microphone and check out some configs.

  • @tarktaro3861
    @tarktaro3861 Před rokem

    Awesome

  • @miguelbenitez6311
    @miguelbenitez6311 Před rokem

    Nice job, that was very interesting

  • @emmepombar3328
    @emmepombar3328 Před rokem

    Good job. I really like it. But keep calm. "compiling, compiling, com...." sounds to much like ADHD ;-).

    • @mfkintech
      @mfkintech Před rokem

      Thanks for feedback Emme 🥰. I'm a little excited, will keep this in mind in future videos!

  • @woniar
    @woniar Před rokem

    bulding, bulding, bulding 🥰

  • @IgorChistruga
    @IgorChistruga Před rokem

    Awesome!!! Thank you!!! Anxiously waiting for new videos!!!

  • @RichardONeil
    @RichardONeil Před rokem

    Good job! All great info! Can't wait to see more.

  • @Tharky
    @Tharky Před rokem

    👏

  • @kis.stupid
    @kis.stupid Před rokem

    Very interesting! Didn't know about the snapshot and monitor nor the validation.

  • @ZeeshanAdil007
    @ZeeshanAdil007 Před rokem

    hey awesome vid! would be great if you could also add source code link with your videos, it'd be really helpful

    • @mfkintech
      @mfkintech Před rokem

      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

    • @ZeeshanAdil007
      @ZeeshanAdil007 Před rokem

      @@mfkintech thanks mate

  • @yusufrdvansavut3816

    👍

  • @yigitcantank7926
    @yigitcantank7926 Před rokem

    👑

  • @duygucanbirinci1785

    🧿😍

  • @ozanaydogan4625
    @ozanaydogan4625 Před rokem

    thanks

  • @muslumsezgin2876
    @muslumsezgin2876 Před rokem

    🔥

  • @zeynepcansuyldrm1787

    🤓

  • @merteroglu737
    @merteroglu737 Před rokem

    🔥