File tree Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Expand file tree Collapse file tree 2 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ Kubernetes Deployment for Simple Golang API
78
78
JWT_SECRET=s3cr3t
79
79
```
80
80
- Update Postman Collection for Automation Testing
81
- - Setup .env to default entryoint
81
+ - Setup .env to default entrypoint
82
82
- Added environment variable for docker-compose.yml
83
83
84
84
---
Original file line number Diff line number Diff line change @@ -69,6 +69,50 @@ Kubernetes Deployment for Simple Golang API
69
69
- ** TravisCI** , detail [ here] ( docs/deployment-travisci.md ) link
70
70
71
71
72
+ ## GO Repository Pattern
73
+
74
+ - Folder Structure
75
+ ```
76
+ .
77
+ ├── config
78
+ │ ├── config.go
79
+ │ └── config_test.go
80
+ ├── controller
81
+ │ ├── book_controller.go
82
+ │ ├── book_controller_test.go
83
+ │ ├── login_controller.go
84
+ │ └── login_controller_test.go
85
+ ├── driver
86
+ │ └── sqlite.go
87
+ ├── go-bookstore.db
88
+ ├── go.mod
89
+ ├── go.sum
90
+ ├── main.go
91
+ ├── main_test.go
92
+ ├── middleware
93
+ │ ├── auth_middleware.go
94
+ │ └── auth_middleware_test.go
95
+ ├── migrate_book.go
96
+ ├── model
97
+ │ └── book.go
98
+ ├── repository
99
+ │ └── book_repository.go
100
+ └── routes
101
+ └── book_routes.go
102
+
103
+ 7 directories, 18 files
104
+ ```
105
+
106
+ - Environment Variables (Default)
107
+ ```
108
+ PORT=8080
109
+ DBNAME=go-bookstore.db
110
+ GIN_MODE=release
111
+ AUTH_USERNAME=devopscorner
112
+ AUTH_PASSWORD=DevOpsCorner@2023
113
+ JWT_SECRET=s3cr3t
114
+ ```
115
+
72
116
## Reproduce Testing
73
117
74
118
- RESTful API Testing, go to [ this] ( docs/test-restful-api.md ) link
@@ -132,6 +176,21 @@ Kubernetes Deployment for Simple Golang API
132
176
tfenv 2.2.2
133
177
```
134
178
179
+ - Golang Version Manager (GVM)
180
+
181
+ ```
182
+ gvm version
183
+ ---
184
+ Go Version Manager v1.0.22 installed at /Users/devopscorner/.gvm
185
+ ```
186
+
187
+ - Golang Version
188
+ ```
189
+ go version
190
+ ---
191
+ go version go1.19.5 darwin/arm64
192
+ ```
193
+
135
194
## Security Check
136
195
137
196
Make sure that you didn't push sensitive information in this repository
You can’t perform that action at this time.
0 commit comments