You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.
├── main.go
├── common
│ ├── utils.go // small tools function
├── docs // automatically generated file by swagger
├── handler
│ ├── memo.go // business logic
├── models
│ ├── autogenerated_memo.go // automatically generated file by gogqueryset
│ ├── database.go // initial database setup
│ ├── memo.go // memo models define & DB operation
├── responses
│ ├── memos.go // define responses format
├── responses
│ ├── memos.go // define request format
├── routers
│ ├── routers.go // grouping URI
│ ├── v1
│ ├── router.go // router binding
Generate Go-queryset
goqueryset -in {fileName}
🔧 Run the Applications
# Move to directory
$ cd workspace
# Clone into YOUR $GOPATH/src
$ git clone https://github.com/KoEonYack/Boilerplate-CRUD-GO.git
# Docker compose
$ docker-compose up -d
# Run Case 1
$ go run main.go
# Run Case 2
# Docker build
$ docker build . -t boilerplate-crud
# Docker run
$ docker run -p 8080:8080 boilerplate-crud