https://github.com/quelchx/sandbox-gin
Go Crud API Example (Gin w/ Gorm)
https://github.com/quelchx/sandbox-gin
go
Last synced: about 1 month ago
JSON representation
Go Crud API Example (Gin w/ Gorm)
- Host: GitHub
- URL: https://github.com/quelchx/sandbox-gin
- Owner: quelchx
- Created: 2023-02-09T00:09:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-09T00:09:42.000Z (over 2 years ago)
- Last Synced: 2025-02-15T08:44:34.507Z (3 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 9.41 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-golang-repositories - sandbox-gin
README
# Instructions on how to setup Golang
## Setup
Create a directory like so from the `go` directory: `/src/github.com/quelchx/project-name` then run `go mod init` to initialize the project.
Will need to have `CompileDaemon` installed to run the project. To install run `go get github.com/githubnemo/CompileDaemon` and `go install -mod=mod github.com/githubnemo/CompileDaemon`
After installing golang ensure the .zshrc file is as follows (macOS):
```sh
# If you come from bash you might have to change your $PATH.
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
```