Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.07 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.07 KB

crud restful api with golang , gorm , gin and mysql


this api does a simple CRUD operations on a single table mysql Database .

this is build on top off gin framwork and GORM library

link to GORM!
link to gin!

the api use different HTTP methods ( GET, POST, PUT, PATCH, and DELETE )

to make this work correctly you need to :

  • you need to clone gin and gorm
  • you need to have mysql installed in your machine ( install xampp if you don't have )
  • create a new empty database and call it 'CRUD'

to add the gin framwork (copy and past this into ur terminal)

go get "https://github.com/gin-gonic/gin"

to add the GORM library (copy and past this into ur terminal)

go get "https://github.com/go-gorm/gorm"

if you found this helpful somehow , credit me as Brahim Bessrour .
play my latest game here .