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
Copy file name to clipboardExpand all lines: backend/README.md
+37-2Lines changed: 37 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,9 +50,9 @@ mix coveralls.html
50
50
mix phx.server
51
51
```
52
52
53
-
After these commands, you can access the following features at [`localhost:4000`](http://localhost:4000). The API documentation is avaliable at `/docs` path only in `dev` or `test` environment. I wrote with [API Blueprint](https://apiblueprint.org),
53
+
After these commands, you can access the following features at [`localhost:4000`](http://localhost:4000) and the API documentation is avaliable at `/docs` path only in `dev` or `test` environment.
54
54
55
-
> **Note:** I used [apiary](https://apiary.io) editor and generated the static `HTML` with [aglio](https://github.com/danielgtaylor/aglio).
55
+
> **Note:** I wrote API documentation with [API Blueprint](https://apiblueprint.org), I used [apiary](https://apiary.io) editor and generated the static `HTML` with [aglio](https://github.com/danielgtaylor/aglio).
56
56
57
57
## :dart: My decisions
58
58
@@ -208,3 +208,38 @@ sequenceDiagram
208
208
O_COMMAND-->>-BACKEND: :200 ++ :order
209
209
BACKEND-->>-FRONTEND: :200 ++ :order
210
210
```
211
+
212
+
## CI / CD
213
+
214
+
> Flow chart:
215
+
216
+
```mermaid
217
+
graph LR
218
+
A([code]) -->|"push (master) or <br/> pull_request"| B{is backend ?}
219
+
220
+
subgraph "Github Action (elixir ci)"
221
+
B -->|yes| E[[check format]]
222
+
E --> F[[check lint]]
223
+
F --> H[[check security]]
224
+
H --> I[[check quality]]
225
+
I --> J{passed?}
226
+
227
+
B -->|no| D([released merge])
228
+
J --> |no| L[/failed build/]
229
+
J --> |yes| N[/successed build/]
230
+
end
231
+
232
+
L --> M([locked merge])
233
+
N --> |"merge (master)"| O
234
+
235
+
subgraph Heroku
236
+
O[[deploy]]
237
+
end
238
+
```
239
+
240
+
## Future improvements
241
+
242
+
-[ ] Review returned status code https://github.com/raulpe7eira/backend-exercise/issues/28
243
+
-[ ] Improve observability in general (logging and metrics) https://github.com/raulpe7eira/backend-exercise/issues/29
244
+
-[ ] Access security to resources https://github.com/raulpe7eira/backend-exercise/issues/30
245
+
-[ ] Product catalog with cache https://github.com/raulpe7eira/backend-exercise/issues/31
0 commit comments