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
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 .