REST API with Go / Gin + Some Simple Tests

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 84

  • @matthew1106
    @matthew1106 5 років тому +6

    Fantastic in depth explanation. You really took the time to go over the small details that everyone seems to skip over. Would love to see more Golang content! Keep it up man.

  • @bacharsaleh6984
    @bacharsaleh6984 5 років тому +21

    Best video I have seen on Gin. Soooo useful, I hope to see something like this but on Microservices :)

  • @shonSHONPHAND
    @shonSHONPHAND 5 років тому +1

    You are a superhero David. Using your superpower to help beginners like me. I would like to have video on login, sign up, password recovery functionalities using sessions and cookies. Thanks in advance.

  • @HarrysKavan
    @HarrysKavan 5 років тому +8

    This is very good! I like that you introduce into concepts by giving developers pointer to how they would use that in a more known programming language. Also the tips on how to structure things give a solid base to start from. Thank you!

  • @cjoshmartin
    @cjoshmartin 3 роки тому

    Thanks for this video!! It has been way more clear then other videos I have been watching

  • @mehdimortaz351
    @mehdimortaz351 4 роки тому

    It's best video I have seen about gin and golang, thank you. so clear and so useful so who know other language and want learn golang as previous technology.

  • @konoha_8232
    @konoha_8232 Рік тому

    Thank you for such a good video! Your explanations are good and it's easy to follow you even if this was hard! :D

  • @lucascampelo4539
    @lucascampelo4539 3 роки тому

    Great tutorial! Hope to see more content.

  • @JacobGoodwin
    @JacobGoodwin 5 років тому +2

    Thanks! This was a very helpful jump-start for me because you did a great job of explaining how you structure your application.

    • @DavidAlsh
      @DavidAlsh  5 років тому +3

      Hey thanks for the feedback! I am thinking about doing a video diving into the details of project structure

  • @harambeexpress
    @harambeexpress 4 роки тому +1

    Thanks mate.
    Good practical guide - a lot of this is hard to get from the docs alone.

  • @merger1234
    @merger1234 5 років тому +1

    Very nice video. You tied together alot of stuff into it that was very useful for me as a beginner at go :) Keep em coming!

  • @danilocastro1042
    @danilocastro1042 5 років тому

    Great video, David Alsh.

  • @Luddehkuddeh
    @Luddehkuddeh 5 років тому +1

    Solid introduction to Gin!

  • @besjansejrani1880
    @besjansejrani1880 4 роки тому

    David, i'm waiting for more videos like this one, thanks

  • @imcoder6969
    @imcoder6969 4 роки тому

    Indeed a good first video!

  • @ecam90
    @ecam90 3 роки тому

    Extremely useful. Thank you!

  • @happykazuki0419
    @happykazuki0419 4 роки тому

    thanks for your tutorial . it's useful. hope you will keep publishing video .

  • @angsh
    @angsh 3 роки тому

    Very good! Thank you from India.

  • @ugurkazdal3627
    @ugurkazdal3627 5 років тому

    you need to keep going to publish videos, your concept is really good .. thank you for sharing also !

  • @RayZde
    @RayZde 4 роки тому

    nice tip with the fetch in the console!

  • @Bravefsj
    @Bravefsj 5 років тому +1

    keep it up,i like you video,clearly explained and good demo.

    • @DavidAlsh
      @DavidAlsh  5 років тому +1

      Thank you! Appreciate your support

  • @AlexFruzenshtein
    @AlexFruzenshtein 5 років тому

    Clear explanation
    It would be nice to see in the future JWT auth in the same app ;)

  • @meraku9390
    @meraku9390 3 роки тому +1

    Davo where are you mate ?? Come on mate we need you back !

    • @DavidAlsh
      @DavidAlsh  2 роки тому

      Working on some new videos!

  • @carlfranz6805
    @carlfranz6805 2 роки тому

    I'm using VSCode and have the VSCode Extensions for GoLang. When I add some code which needs another include, it almost never does it automatically like yours does.
    Any ideas?

    • @DavidAlsh
      @DavidAlsh  2 роки тому

      Make sure you install the go tools by hitting ctrl+shift+p, type "Go: Install" and select the item that lets you install the Go toolset. Don't touch anything until it tells you they are all installed. Also make sure your Go binaries are available in your PATH

  • @logannguyen9512
    @logannguyen9512 2 роки тому

    What did you use for the folder icon theme? Pretty cool

  • @shannonlucas4
    @shannonlucas4 5 років тому

    nice one, mate. would love to see another with a database attached. there are a lot of videos showing simple examples with slices but not really any that dive a bit deeper. cheers!

    • @DavidAlsh
      @DavidAlsh  5 років тому +1

      Hey thanks for the feedback. Sounds good, I'll drive in deeper in a following video.

    • @shannonlucas4
      @shannonlucas4 5 років тому +1

      @@DavidAlsh awesome! also, really enjoyed your thoughts on package management. that's an area without a lot of references in go land still. love seeing how people model everything.

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Really encouraging to hear that. I might do a video diving into package layout

  • @AnshumanVenkatesh
    @AnshumanVenkatesh 5 років тому +2

    Awesome tutorial. Can you please create a Github repo that contains the entire code?

    • @DavidAlsh
      @DavidAlsh  5 років тому +1

      Thanks man, will do

  • @quangnguyentan1139
    @quangnguyentan1139 5 років тому

    Hi guy, thanks for your video, which is your extension for golang you are using? It has code suggestion

  • @SuperLicuri
    @SuperLicuri 4 роки тому

    Congratulations!!

  • @JohnDoe-ji1zv
    @JohnDoe-ji1zv 5 років тому +3

    Thanks for intro, very useful. 🙏🏻 are you going to make more video serious on gin?

    • @DavidAlsh
      @DavidAlsh  5 років тому +1

      Hi there and thanks! I'm going to do a few more videos when I have some time on topics like project structure, working with databases and how to test a Go application. Do you have any requests?

    • @JohnDoe-ji1zv
      @JohnDoe-ji1zv 5 років тому

      David Alsh oh that’s great :) we’ll it would be really amazing if you can do some videos on graphql with gin, because I’m seriously planning to switch my stack for using golang for the backend development. Anyway thanks 🙏🏻

    • @fajara.r1379
      @fajara.r1379 5 років тому

      @@DavidAlsh Hi David, this video is great. If I can make a request please continue with the database. Because I'm super new to go and still learning about gin. Have a great day! Cheers

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Check out my series here on how to use a database with Go: ua-cam.com/video/Q4XpDziGH0E/v-deo.html

  • @XHLU-bk3us
    @XHLU-bk3us 4 роки тому

    Very clear. Thanks!

  • @judicaelramanampison6209
    @judicaelramanampison6209 5 років тому

    Cool, thanks for the video, do you have any video for gin and gqlgen

  • @WartHolder
    @WartHolder 5 років тому

    Nice video!

  • @daniel_gsc
    @daniel_gsc 5 років тому +1

    Great video Dave, thank you very much! Could you share what keyboard are you using and with which switches, sounds beautiful haha! :)

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Hey mate, thanks for that! It's a keyboard I bought from AliExpress for $30AUD actually. It uses blue switches and it's extremely satisfying to work on. I haven't been able to find a link for it, I suspect it's no longer sold but I'll drop a comment if I find it.

    • @daniel_gsc
      @daniel_gsc 5 років тому +1

      @@DavidAlsh Haha that's awesome! Thanks man, appreciated!!

  • @lebossfalse
    @lebossfalse 4 роки тому

    this guy is great !!!!

  • @ancogamer
    @ancogamer 4 роки тому

    Thanks mate, your video helped me alot, in my go study. Can you let avaible the project, that you used on this video? I'm not a native speaker of English, so I just got a little lost sometimes.

    • @DavidAlsh
      @DavidAlsh  4 роки тому

      Thank you for your reply, I have a similar project (using Chi) on github. I intend to revisit this video in the near future to provide some depth into folder structure, best practices and testability. I'll make sure I release the source code then.
      github.com/alshdavid-edu/go-chi-api

  • @NekoTashi
    @NekoTashi 5 років тому +1

    What is your font and theme? Great video!

  • @martintsang1711
    @martintsang1711 4 роки тому +1

    I love this video~Thank you!..And I am confused about the method and interface, I saw you defining "Repo" struct and defining method for adding/getting, but what improvement from just defining function for adding / getting item?

  • @startup2693
    @startup2693 4 роки тому

    really good, thank you

  • @kapiljain1129
    @kapiljain1129 5 років тому

    Can you please share this code if possible or do you any github repo which I can follow?

  • @crazyoptimist4540
    @crazyoptimist4540 4 роки тому

    Great man!

  • @yunannnnn
    @yunannnnn 4 роки тому

    hei bro, why make command cant use? do u know how to solve it?
    it said 'make' is not recognized as an internal or external command,
    operable program or batch file.
    so i run manually with go run :D

    • @yunannnnn
      @yunannnnn 4 роки тому

      then this error appear "main.go:4:2: package TESTAPI/httpd/handler is not in GOROOT (C:\Go\src\TESTAPI\httpd\handler)"

  • @AlokYadav
    @AlokYadav 5 років тому

    IIRC gin didn't support the naked routes (like GitHub) did they fixed that yet ? it was one of major roadblock for me , endup with chi router instead .

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Check out my video on Chi if you'd like ua-cam.com/video/zeme_TmXyBk/v-deo.html

  • @needlessoptions
    @needlessoptions 5 років тому

    that wallaper is clean af

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Thanks mate, it's all Apple's doing

  • @crazyoptimist4540
    @crazyoptimist4540 4 роки тому

    Thanks a lot man!

  • @XIN-zl3oe
    @XIN-zl3oe 5 років тому +2

    Awesome ! , it would be better if taught us how to integrate MongoDB within Gin

    • @DavidAlsh
      @DavidAlsh  5 років тому +1

      Thanks for the feedback. I'll do so in a following video!

  • @cuzbo_
    @cuzbo_ 5 років тому +1

    great great great. Could you integrate it with svelte?

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Thanks for the comment! Sure can - really enjoying working with Svelte

  • @imdhruv99
    @imdhruv99 5 років тому

    can you Create RBAC using Mysql and Golang. Where admin can do CRUD on every data and user can do CRUD on only his data.

    • @imdhruv99
      @imdhruv99 5 років тому

      please send me source code as early as possible
      and Also provide Oauth2 support

  • @khazartalibov7911
    @khazartalibov7911 3 роки тому

    very good

  • @buacomgiadinh1
    @buacomgiadinh1 4 роки тому

    So useful

  • @sshr4492
    @sshr4492 5 років тому

    Framework is really required ?

    • @DavidAlsh
      @DavidAlsh  5 років тому

      Not really, a router that's closer to the standard library is Chi - check out my video on it here: ua-cam.com/video/zeme_TmXyBk/v-deo.html

  • @dedystyawan9643
    @dedystyawan9643 4 роки тому

    it's a short and understanding video for me

  • @ahmadta8303
    @ahmadta8303 2 роки тому

    Great

  • @jdotsystem
    @jdotsystem 4 роки тому

    I feel like called my name at someone said Gin

  • @dibri
    @dibri 2 роки тому

    please build a single page application

    • @DavidAlsh
      @DavidAlsh  2 роки тому

      Sure, doing anything in particular?

    • @dibri
      @dibri 2 роки тому

      @@DavidAlsh maybe a project with a NoSQL database. like a url playlist, that takes a bunch of urls, generates a custom link and auto opens when the custom url is visited.

    • @dibri
      @dibri 2 роки тому

      @@DavidAlsh this is just off the bat. sorry for taking so long to get back. I would love to work on this with you

  • @jordancotter5885
    @jordancotter5885 3 роки тому +1

    18:43 XD

  • @gcxs
    @gcxs 4 роки тому

    I like how he search google

  • @muditmohantyagi
    @muditmohantyagi 2 роки тому

    You are showing very typical example use by you