- run
go mod init your-module-name
- install dependencies
- Zerolog
go get github.com/rs/zerolog/log
- Gin
go get github.com/gin-gonic/gin
- Gorm
go get gorm.io/gorm
- Gorm postgres
go get gorm.io/driver/postgres
- Zerolog
- Create main.go
- Create local http server with Gin then run it with
go run main.go
- Create stucts of model
- Create interfaces for CRUD for in repository
Excercise from: https://www.youtube.com/watch?v=cLEXgca3FM8&ab_channel=lemoncode21