The repository deals with the development of rest api using go with the integration of mysql database using gorm and router using mux
go get -u github.com/gorilla/mux
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
PORT=8000
router.HandleFunc()
http.ListenAndServe()
- Open postman
- Type
http://localhost:3000/(your endpoint)
- Send the request
- Before sending the request run the following command in the project
go run main.go