Skip to content

sameerkhan97/go-api-with-gorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-api-with-gorm

In this project, we have built a complete CRUD GO REST API with Gorilla Mux and GORM Library,and connected it with local mysql data base from work bench to perform CRUD operations Here we have connected Local mysql data base from workbench in the programee(see Line 20) You can use any of the database like :

NOTE : you have to use the particular driver according to your db,as I have used mysql driver for this project

For more details :

Instructions to run code:

  • Clone the repo

    • git clone
  • Before running the app

    • edit this line in the main file to connect with your mysql database
  • Run the app using

    • in powershell use "go mod vendor" to synch the vendor directories
    • now use specific file name to run the project
    • command go run main.go
  • Use POSTMAN for Testing

    • Test all routes,endpoints,operations(CRUD) using POSTMAN

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages