Skip to content

Commit a7b7dad

Browse files
committed
Update Changelogs & README
1 parent e9d3c6a commit a7b7dad

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Kubernetes Deployment for Simple Golang API
7878
JWT_SECRET=s3cr3t
7979
```
8080
- Update Postman Collection for Automation Testing
81-
- Setup .env to default entryoint
81+
- Setup .env to default entrypoint
8282
- Added environment variable for docker-compose.yml
8383

8484
---

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,50 @@ Kubernetes Deployment for Simple Golang API
6969
- **TravisCI**, detail [here](docs/deployment-travisci.md) link
7070

7171

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+
72116
## Reproduce Testing
73117

74118
- RESTful API Testing, go to [this](docs/test-restful-api.md) link
@@ -132,6 +176,21 @@ Kubernetes Deployment for Simple Golang API
132176
tfenv 2.2.2
133177
```
134178

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+
135194
## Security Check
136195

137196
Make sure that you didn't push sensitive information in this repository

0 commit comments

Comments
 (0)