Creating Golang Rest API with Mux and GORM - Complete Tutorial

  Рет қаралды 33,005

Daily Code Buffer

Daily Code Buffer

Күн бұрын

Пікірлер: 132
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Follow me on Twitter: twitter.com/DailyCodeBuffer
@tonyabraham2405
@tonyabraham2405 3 жыл бұрын
Awesome. Initially I thought this might not be much useful, but after getting familiarized with GOLANG, I realized this is far better than many other tutorials. Simple and precise
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Thanks 🙏
@sawansharma4402
@sawansharma4402 2 жыл бұрын
I have been searching for a proper use of Gorm for crud operation for past 2 days.. But you solved my problem bro... Its more than enough.. Keep growing!!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks a lot 🙏🏻
@indignocat
@indignocat 3 жыл бұрын
This has been arguably one of the quickest, clearest GORM tutorials I've come across; it took me a 1/2 hour to get things working with an API exercise. "Simplified Learning" is a tag you've earned well. Thanks for putting this together!
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Glad you enjoyed 🙏
@AmanKumar-ps8th
@AmanKumar-ps8th 3 жыл бұрын
After so many research how to work and learn golang in real world problems I found your channel and u r life savior man💛 please make more videos on golang series please how to use with mongodb and everything. Again thanks ❤🙏🏻
@esra_erimez
@esra_erimez 2 жыл бұрын
17:56 I know that feeling all too well. Brilliantly done!!!
@mohaimenchowdhury
@mohaimenchowdhury 3 жыл бұрын
I was looking for Go REST API with MySQL for 1.5 hours and got frustrated, and then I found this. Thanks man, for saving the day :)
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Glad, it was helpful 😊
@gem387
@gem387 2 жыл бұрын
I love the way you explain things. You're one of the best, if not the best, tutors I've met on KZbin.
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thank you so much 🙏🏻
@shoaebjindani5914
@shoaebjindani5914 2 жыл бұрын
As there are a lot of developers who might be moving from Java to GoLang.. It would be great if you come up with a video comparing performance benchmarks of popular programs written in respective languages..
@mwnkt
@mwnkt 3 жыл бұрын
I just started learning Go and this was the perfect tutorial to teach me how to create a go server. thank you please keep up the good work
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Thank you 🙏
@DelsanAnthony
@DelsanAnthony 2 жыл бұрын
Tutorial is concise and straightforward, awesome!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏🏻
@parvezmulla3324
@parvezmulla3324 3 жыл бұрын
amazing video man! you have simplified it
@Crazyfolk
@Crazyfolk 2 жыл бұрын
Very Precise and it enhanced my knowledge thouroghly
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
🙏🏻🙏🏻
@rockydods762
@rockydods762 3 жыл бұрын
Hey when I run this code only the timestamps get updates not the actual data pls help! json.NewDecoder(r.Body).Decode(&user) DB.First(&user, params["id"]) DB.Save(&user) json.NewEncoder(w).Encode(user)
@biswadeepchakraborty3546
@biswadeepchakraborty3546 3 жыл бұрын
Bro your tutorials are very easy to follow, could you please make another video on connecting postgres through the gorm
@riki2404
@riki2404 Жыл бұрын
This was very helpful. Thank you for sharing your knowledge .
@DailyCodeBuffer
@DailyCodeBuffer Жыл бұрын
🙏🏻🙏🏻
@ankit6260
@ankit6260 2 жыл бұрын
subscribed and shared in the my group. found very helpful
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thank you so much 😊
@mk-gandhii
@mk-gandhii 2 жыл бұрын
Great tutorial brother! Keep doing such a great videos. I learnt a lot!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏🏻
@mahdizarepoor8964
@mahdizarepoor8964 3 жыл бұрын
Perfect . I really enjoy your explanation .
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Thanks
@AmanKumar-ps8th
@AmanKumar-ps8th 3 жыл бұрын
Please make a tutorial on kafka, redis with golang ..it will help us a lot..u r great 😍
@RahulSingh-qe4sw
@RahulSingh-qe4sw 2 жыл бұрын
Thank you so much :) The video was helpful
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Glad to hear that 🙏🏻
@NganLe-tb8bt
@NganLe-tb8bt 3 жыл бұрын
Thanks, first time checking out golang and you're making it interesting in this video.
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
I am glad to hear that. Thank you
@NikhilGupta-pn8ss
@NikhilGupta-pn8ss Жыл бұрын
Thanks for this great explanation. It helps me a lot
@DailyCodeBuffer
@DailyCodeBuffer Жыл бұрын
Glad it was helpful!
@sourabhmori8129
@sourabhmori8129 9 ай бұрын
12:39 how to copy that database url please help me 🙏🙏🙏🙏🙏🙏
@justforkidzs
@justforkidzs 3 жыл бұрын
It is a very good video with proper explanation. Thanks for your efforts. Could you please make a video on microservices project.
@prajwalscodestack
@prajwalscodestack 3 жыл бұрын
You are Awesome bro. Thanks for making this tutorial.
@biaanderssson
@biaanderssson 2 жыл бұрын
Been following you for the past year or so. Any possibility to do more GoLang videos? Maybe a bit about DevOPS kinda off projects? Such a CLI's, microservices and so forth? Love the way you teach mate. Keep it up!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Planning on it
@biaanderssson
@biaanderssson 2 жыл бұрын
@@DailyCodeBuffer You're the man. Truly appreciate it!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
🙏🏻🙏🏻
@CLUB2627
@CLUB2627 3 жыл бұрын
So both user.go and main..go using package main?
@nirmesh44
@nirmesh44 3 жыл бұрын
This is exactly I was looking for. Thanks buddy 🙏
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
🙏🙏
@VirajGamage
@VirajGamage 3 жыл бұрын
Thank you for the awesome video. I have one question. When you do the updating, if you are sending only the email field from POSTMAN, GO will not update the other fields in the database. Those data will be kept as they were. How does GO know that only the fields that we send from the POSTMAN should be updated? why it does not set other fields to null ?
@riddhokumar1724
@riddhokumar1724 3 жыл бұрын
Thank you man 😍 . Rest api with Golang 🤩🤩
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
🙏
@riddhokumar1724
@riddhokumar1724 3 жыл бұрын
Man one day plz work with Golang, db and static (UI) 😬. It helps a lot .
@aadiraj6126
@aadiraj6126 3 жыл бұрын
Brother, I'm new to Microservice & have one small doubt. If we use webclient as an alternative of RestTemplate/FeignClient for asynchronous non-blocking. It used to talk b/w two Microservices, right? Then whats the use of RabbitMQ/ Kafka? They also send mesages & communicatiom b/w two Microservices asynchronously? Can u help me to understand it?
@pedroreisbr
@pedroreisbr 2 жыл бұрын
Very good tutorial, thank you!
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏🏻
@karimzai3150
@karimzai3150 Жыл бұрын
is there is any full course for server side development in golang?
@it-s-me-mohit
@it-s-me-mohit 3 жыл бұрын
Which should we use for webdevelopment python rest apis or golang rest apis??
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Depends on the Technical requirements
@piratevv
@piratevv 2 жыл бұрын
nice tutorial, what is the use of migrations? is it just to create the tables?
@WilmanArambillete
@WilmanArambillete 3 жыл бұрын
will you use golang for a backend project or springboot with java? I have used Spring boot with Kotlin but wanted to try golang for my next project although i am kind of hesitant. What do you think?
@arghyamitra3281
@arghyamitra3281 3 жыл бұрын
Really great tutorial ... I liked how go handles rest apis but I still prefer Spring Boot though , i guess spring boot code looks much better
@radhikatikone3731
@radhikatikone3731 2 жыл бұрын
If I want to get users by name then what should I need to make changes in code...I'm getting null values when I pass string in url but it's work when I pass ID...pls help me
@DK-pf2dg
@DK-pf2dg 3 жыл бұрын
I created folder routes with my get,del etc. functions, but main.go can't find the functions.. How can I fix this?
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
How are you executing it?
@DK-pf2dg
@DK-pf2dg 3 жыл бұрын
@@DailyCodeBuffer I have main.go and folder routes/inventory.go, in main.go I try import ( "routes/inventory" ) and in main() func in main.go do inventory.handleRequest() but the import doesn't work. inventory.go at top I put package routes
@kashifnihal
@kashifnihal Жыл бұрын
greate work ....👌👌👌
@DailyCodeBuffer
@DailyCodeBuffer Жыл бұрын
Thanks 🙏🏻
@maheshbabunadigoti7050
@maheshbabunadigoti7050 3 жыл бұрын
In java, we have spring security but in go lang ????? Can you make a video bro...
@shivamgupta5476
@shivamgupta5476 3 жыл бұрын
Bro , Fantastic .Make a project using redis , kafka and microservices . How redis and kafka helps in performance.
@mercymaina1355
@mercymaina1355 2 жыл бұрын
very helpful. thank you
@raufhm
@raufhm 3 жыл бұрын
good sharing knowledge bro. thanks!
@natashasthilaire1950
@natashasthilaire1950 Жыл бұрын
Would you be able to create a video of how to setup the connection to the database from VS code?
@franciskisiara
@franciskisiara 3 жыл бұрын
I am just going to say "Thank you" over here.
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
🙏
@kozie928
@kozie928 3 жыл бұрын
That was really helpful, thank you :)
@krishnamishra6118
@krishnamishra6118 2 жыл бұрын
At 12.40 mints what is that const DNS ?
@GuilhermeSantos-fz9us
@GuilhermeSantos-fz9us 2 жыл бұрын
nicee, bro, I loved your video
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏
@srikantprasad6711
@srikantprasad6711 3 жыл бұрын
Excellent video bro. Create video on golang with reactjs.
@iossipmiljak6770
@iossipmiljak6770 3 жыл бұрын
What extension are you using for automatic fill up of handleFunc? Keep up with this, you are great teacher ;)
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Golang plugin for VS Code
@natashasthilaire1950
@natashasthilaire1950 Жыл бұрын
How did you find your DNS?
@abdullahalabasi6546
@abdullahalabasi6546 3 жыл бұрын
Great tutorial, thank you!
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Thanks
@sourabhmori8129
@sourabhmori8129 9 ай бұрын
@@DailyCodeBuffer 12:39 how to copy that database url please help me 🙏🙏🙏🙏🙏🙏
@AnilKumar-fe5vd
@AnilKumar-fe5vd 3 жыл бұрын
Great job bro, It was so much helpful, Can you upload a video that is related to gorm transaction included and should use an existing database table?
@sree_7956
@sree_7956 2 жыл бұрын
Can i have video on how to post request with stored procedure having Table valued parameter
@ajaym3105
@ajaym3105 2 жыл бұрын
Awesome content, can i get unit testing for this
@MohamedAdnan-ng6qf
@MohamedAdnan-ng6qf 8 ай бұрын
How to get the database url?
@i-am-learning-life
@i-am-learning-life 3 жыл бұрын
Okay now create authentication in golang 😍😍
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Planning one, thanks for suggestion
@kazishafin1
@kazishafin1 3 жыл бұрын
thank you bro ..love from Bangladesh.. .can you make some project base tutorials that help tremendously for beginners like me.
@EricRobinson0374
@EricRobinson0374 2 жыл бұрын
Nice Tutorial
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏🏻
@vkmrishad
@vkmrishad 3 жыл бұрын
Great Tutorial
@kalayarmoemyint6478
@kalayarmoemyint6478 3 жыл бұрын
please make tutorial for restapi project with mongo db
@ahmadfaraz3678
@ahmadfaraz3678 3 жыл бұрын
Please create more tutorials on Golang
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Planning for that
@ferrysukarto1049
@ferrysukarto1049 3 жыл бұрын
Awesome Bro.
@srikantprasad6711
@srikantprasad6711 3 жыл бұрын
Sir create more project on golang
@krishnamishra6118
@krishnamishra6118 2 жыл бұрын
How to download that mysql
@karimzai3150
@karimzai3150 Жыл бұрын
using docker
@sumitdwivedi1720
@sumitdwivedi1720 3 жыл бұрын
Make video demonstrating firebase and golang
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Thank you for suggestion
@sumitdwivedi1720
@sumitdwivedi1720 3 жыл бұрын
@@DailyCodeBuffer please demonstrate firebase with golang apis i need urgently
@faisalsalam33
@faisalsalam33 Жыл бұрын
❤ thank you
@DailyCodeBuffer
@DailyCodeBuffer Жыл бұрын
You're welcome 😊
@AsifKhan-fn2cy
@AsifKhan-fn2cy 3 жыл бұрын
crud operation using leveldb
@krishparmar3213
@krishparmar3213 3 жыл бұрын
nice
@leetcodeproblems1169
@leetcodeproblems1169 2 жыл бұрын
In my case there is no soft delete. Record is permanently deleted.
@viveknambiar7999
@viveknambiar7999 2 жыл бұрын
BEST ONE
@DailyCodeBuffer
@DailyCodeBuffer 2 жыл бұрын
Thanks 🙏
@kalayarmoemyint6478
@kalayarmoemyint6478 3 жыл бұрын
thank you
@moshfiqurrahman5996
@moshfiqurrahman5996 2 жыл бұрын
Please declare data type instead of dynamic typing.
@zeeshanbhati
@zeeshanbhati Жыл бұрын
Please user better variable names instead of w & r
@merictunc
@merictunc 3 жыл бұрын
🙌🙌🙌🙌
@aqibishaq885
@aqibishaq885 3 жыл бұрын
I am a Java programmer bro its go language ok...
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
😊
@aqibishaq885
@aqibishaq885 3 жыл бұрын
@@DailyCodeBuffer what next about java on your channel
@officially_sagar_07
@officially_sagar_07 11 ай бұрын
Yeah banda kitni baar over here bolta hai 😅
@alanwang4700
@alanwang4700 Жыл бұрын
anyone in SWE struggling tn
@vivekhiwarkar8228
@vivekhiwarkar8228 3 жыл бұрын
How do i get the database url ? Can someone help !!! @Daily Code Buffer
@youtubegarbage4u
@youtubegarbage4u 3 жыл бұрын
what microphone are you using to create this video?
@DailyCodeBuffer
@DailyCodeBuffer 3 жыл бұрын
Maona USB microphone 🎤. Link is in the description of the video
@youtubegarbage4u
@youtubegarbage4u 3 жыл бұрын
@@DailyCodeBuffer the maona usb microphone does not cancel background noise...so how come there is no background noise for you? what is best microphone to cancel background noise?
@NikhilSharma-dn9eg
@NikhilSharma-dn9eg 3 жыл бұрын
I got this error : ./main.go:16:23: undefined: GetUsers ./main.go:17:26: undefined: CreateUsers ./main.go:22:2: undefined: InitialMigration How to solve it ?
@tonyabraham2405
@tonyabraham2405 3 жыл бұрын
@Nikil: I was also getting same. Actually you should not type go run main.go since there are 2 files. instead after building pls type ./"ORM" which is the exe file
@govindakr2022
@govindakr2022 2 жыл бұрын
# command-line-arguments ./main.go:14:25: undefined: GetUsers ./main.go:15:30: undefined: GetUser ./main.go:16:25: undefined: CreateUser ./main.go:17:30: undefined: UpdateUser ./main.go:18:30: undefined: DeleteUser ./main.go:24:2: undefined: InitialMigration plzzzz solution ..?
@ageconcepts9829
@ageconcepts9829 2 жыл бұрын
am getting the same error were you able to solve?
@sourabhmori8129
@sourabhmori8129 9 ай бұрын
12:39 how to copy that database url please help me 🙏🙏🙏🙏🙏🙏
@Anchal-p8l
@Anchal-p8l 9 күн бұрын
how to get DNS url for MS SQL server?
@sourabhmori8129
@sourabhmori8129 9 ай бұрын
12:39 how to copy that database url please help me 🙏🙏🙏🙏🙏🙏
JWT token based authentication/authorization in Golang (REST API's)
30:02
Daily Code Buffer
Рет қаралды 40 М.
Building REST API's using Go Fiber and Gorm  |  Go Fiber Tutorial
28:27
Daily Code Buffer
Рет қаралды 15 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,4 МЛН
Handle 1,000,000 Threads with Java and Spring Boot !!!
21:50
Daily Code Buffer
Рет қаралды 29 М.
Build a Rest API with GoLang
34:14
Laith Academy
Рет қаралды 125 М.
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 980 М.
Golang REST API With Mux
44:03
Traversy Media
Рет қаралды 341 М.
Creating a JSON CRUD API in Go (Gin/GORM)
34:08
Coding with Robby
Рет қаралды 126 М.
Kubernetes Tutorial with Microservices and Cloud | Kubernetes Course
3:17:54
Building REST APIs in Go 1.22 - New Features
7:10
TutorialEdge
Рет қаралды 40 М.
Go API Tutorial - Make An API With Go
38:03
Tech With Tim
Рет қаралды 191 М.