Skip to content

Build a basic REST Api with Golang, Gin, and Gorm.

Notifications You must be signed in to change notification settings

prakarangs/golang-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter guide

  1. run go mod init your-module-name
  2. 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
  3. Create main.go
  4. Create local http server with Gin then run it with go run main.go
  5. Create stucts of model
  6. Create interfaces for CRUD for in repository

Excercise from: https://www.youtube.com/watch?v=cLEXgca3FM8&ab_channel=lemoncode21

About

Build a basic REST Api with Golang, Gin, and Gorm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages