https://github.com/mukulmantosh/go-gorilla-rest
Basic CRUD Operations using Gorilla/Mux and GORM
https://github.com/mukulmantosh/go-gorilla-rest
golang gorm-orm http rest-api
Last synced: 3 months ago
JSON representation
Basic CRUD Operations using Gorilla/Mux and GORM
- Host: GitHub
- URL: https://github.com/mukulmantosh/go-gorilla-rest
- Owner: mukulmantosh
- Created: 2023-06-29T02:46:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-29T02:50:17.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T05:04:21.718Z (3 months ago)
- Topics: golang, gorm-orm, http, rest-api
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Gorilla/Mux CRUD REST

In this application we are going to create CRUD endpoints using Gorilla/Mux and GORM.## Installing Dependencies
```
go get -u github.com/gorilla/mux
go get -u gorm.io/gorm
go get -u gorm.io/driver/mysql
```When you're creating the `user` package make sure to run the below command
```
god mod init user
god mod tidy
```Run the below command in the root
```
go mod edit -replace user=./user
```Once, you're done with all the changes.
Run the below command
```
go build
```You will receive a binary file in your project root,
under the name `go-rest` in Windows `go-rest.exe`