Skip to content

Commit eb79cca

Browse files
committed
Update README.md
1 parent 872df7d commit eb79cca

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
9393

9494
#### 2 - Create infrastructure/productRepository.go (DB query)
9595

96+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/infrastructure/productRepository.go#L1-L61
97+
9698
```tree
9799
├───internal
98100
│ ├───product
@@ -102,6 +104,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
102104

103105
#### 3 - Create port.go (dp injection for the service)
104106

107+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/port.go#L1-L7
108+
105109
#### 4 - Create service/createProduct.go (create a new product use case implementation)
106110

107111
```tree
@@ -112,6 +116,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
112116
│ │ service.go
113117
```
114118

119+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/service/createProduct.go#L1-L51
120+
115121
#### 5 - Create service/service.go (dependency injection service using uber dig)
116122

117123
```tree
@@ -122,6 +128,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
122128
│ │ service.go
123129
```
124130

131+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/service/service.go#L1-L42
132+
125133
#### 6 - Create handler/createProduct.go (create a new hanlder presenter to call the use case)
126134

127135
```tree
@@ -132,6 +140,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
132140
│ │ │ handler.go
133141
```
134142

143+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/handler/createProduct.go#L1-L60
144+
135145
#### 7 - Create handler/handler.go (handles all the routes for all the presenters)
136146

137147
```tree
@@ -142,6 +152,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
142152
│ │ │ handler.go
143153
```
144154

155+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/handler/handler.go#L1-L11
156+
145157
#### 8 - Create mock/mockProductRepository.go (mocks the user repository implementation for unit testing)
146158

147159
```tree
@@ -151,6 +163,8 @@ https://github.com/sebajax/go-vertical-slice-architecture/blob/d4501917930ef2263
151163
│ │ │ mockProductRepository.go
152164
```
153165

166+
https://github.com/sebajax/go-vertical-slice-architecture/blob/872df7def565c7e0a95216b0b93d8166c3912ef5/internal/product/mock/mockProductRepository.go#L1-L28
167+
154168
#### 9 - Create service/createProduct_test.go (create a unit test for the service)
155169

156170
```tree

0 commit comments

Comments
 (0)