Build a REST API in Go using Fiber + GORM

preview_player
Показать описание
In this video we're going to build a REST API in Go using the web framework Fiber and the Go ORM library GORM alongside a SQL database

⏳ Timestamps
00:00:00 - Project Setup
00:09:00 - Database
00:13:00 - Creating our models
00:22:14 - User routes
00:51:12 - Product routes
01:06:53 - Order routes

The finished code can be found here:

#Go #Fiber
Рекомендации по теме
Комментарии
Автор

👽 Join the Discord Server (link in the description)

iamrithmic
Автор

The fact that you're repeating the crud functionality with different parts of this project is so awesome because after the second or third time people can see the pattern and have a higher chance of not just memorizing but learning how to implant a CRUD operation into a service, and don't let me start on how great the explanations were. great job with the tut and please do keep up with the good work!

iliatalebzade
Автор

I came from Laravel and Rails. and I just learn Go and I found your tutorial. Its very helpfull for beginner like me.
This is very simple example. Thanks

MrKeliv
Автор

Great learning experience with this channel. Thank you and please create more videos.

anuj
Автор

Every time you mention "gorm", I think of "blue", as in Irish "gorm" [said a gur-um] means "blue". Also, speaking of blue in Irish, "fear/bean gorm" [far/ban gur-um] literally translates to "blue man/woman", but it means a black man/woman, as to call a person "black" or "dubh" [dove] means they are bad/evil.

TattedFaceJoey
Автор

may i ask about the name of your vsc theme?

hos
Автор

Great video!
VS Code Theme bro, pls :)

nazdender
Автор

Great content. Could you plz add pagination function~

WW-qvuw
Автор

i have added a functionality if it is creating a new user can't create users with the same email more than once

func CreateUser(c *fiber.Ctx, ) error {
var user models.User

if err := c.BodyParser(&user); err != nil {
return
}

var existingUser User
result := = ?",

if result.Error == nil {
return
"message": "User already exists",
})
}


responseUser := CreateResponceUser(user)

return
}

Vincent_
Автор

Awesome tutorial, it easy to follow the step,
by the way, what theme of vs code did you use? @rithmic

ivandjoh
welcome to shbcf.ru