Skip to content

The repository deals with the development of rest api using go with the integration of database using gorm and router using mux

Notifications You must be signed in to change notification settings

oojas/REST-API-CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-API-CRUD

The repository deals with the development of rest api using go with the integration of mysql database using gorm and router using mux

Installation process

For mux router

go get -u github.com/gorilla/mux

For GORM Integration tools

go get -u gorm.io/gorm

Integrating the mysql server

go get -u gorm.io/driver/mysql

Setting the environment port

PORT=8000

Note that the port has to be declared inside an .env file

Setting up the router

router.HandleFunc()
http.ListenAndServe()

How to run

  • 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

About

The repository deals with the development of rest api using go with the integration of database using gorm and router using mux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published