Skip to content

Commit

Permalink
Update Changelogs & README
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroc0d3 committed Mar 12, 2023
1 parent e9d3c6a commit a7b7dad
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Kubernetes Deployment for Simple Golang API
JWT_SECRET=s3cr3t
```
- Update Postman Collection for Automation Testing
- Setup .env to default entryoint
- Setup .env to default entrypoint
- Added environment variable for docker-compose.yml

---
Expand Down
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,50 @@ Kubernetes Deployment for Simple Golang API
- **TravisCI**, detail [here](docs/deployment-travisci.md) link


## GO Repository Pattern

- Folder Structure
```
.
├── config
│ ├── config.go
│ └── config_test.go
├── controller
│ ├── book_controller.go
│ ├── book_controller_test.go
│ ├── login_controller.go
│ └── login_controller_test.go
├── driver
│ └── sqlite.go
├── go-bookstore.db
├── go.mod
├── go.sum
├── main.go
├── main_test.go
├── middleware
│ ├── auth_middleware.go
│ └── auth_middleware_test.go
├── migrate_book.go
├── model
│ └── book.go
├── repository
│ └── book_repository.go
└── routes
└── book_routes.go
7 directories, 18 files
```

- Environment Variables (Default)
```
PORT=8080
DBNAME=go-bookstore.db
GIN_MODE=release
AUTH_USERNAME=devopscorner
AUTH_PASSWORD=DevOpsCorner@2023
JWT_SECRET=s3cr3t
```

## Reproduce Testing

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

- Golang Version Manager (GVM)

```
gvm version
---
Go Version Manager v1.0.22 installed at /Users/devopscorner/.gvm
```

- Golang Version
```
go version
---
go version go1.19.5 darwin/arm64
```

## Security Check

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

0 comments on commit a7b7dad

Please sign in to comment.