Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/readme changes #204

Merged
merged 23 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
177aa9c
refactor(shoppinglist-service): add auth middleware generaly to the r…
Onyxmoon Jan 16, 2024
74af40e
docs: Add info for kubernetes endpoints
Onyxmoon Jan 16, 2024
1e80497
test(user-service): refactor tests for handler
Onyxmoon Jan 17, 2024
612bd6c
test(user-service): add tests for grpc server
Onyxmoon Jan 17, 2024
b29797d
refactor(user-service): remove demo repository
Onyxmoon Jan 17, 2024
c6656be
test(user-service): add grpc server tests
Onyxmoon Jan 17, 2024
84fa03e
refactor(product-service): remove unused repositories and controller
Onyxmoon Jan 17, 2024
fa84feb
refactor(http-proxy-service): remove comments
Onyxmoon Jan 17, 2024
5b349ed
feat(kubernetes): add static pv for database
Onyxmoon Jan 17, 2024
b7f7265
refactor(shoppinglist-service): remove unused repositories and contro…
Onyxmoon Jan 17, 2024
f1afcda
docs(kubernetes): add README.md for automatic cluster via vm
Onyxmoon Jan 17, 2024
7f9199e
Merge f1afcdac5f3ac7fb40668a6eddaba558bd2be4da into dc0a535767c40897b…
Onyxmoon Jan 17, 2024
4a330b0
chore: Updated coverage badge.
actions-user Jan 17, 2024
1fe63c7
build: include integration tests in workflows
Onyxmoon Jan 17, 2024
e123372
build(kubernetes): adapt example config for database to readme's one
Onyxmoon Jan 17, 2024
ab20ff2
Merge branch 'feature/readme-changes' of https://github.com/Onyxmoon/…
Onyxmoon Jan 17, 2024
95a5735
build: streamline workflows
Onyxmoon Jan 17, 2024
cb731be
Merge 95a5735d627c96045612007c6f991b3549a6abef into dc0a535767c40897b…
Onyxmoon Jan 17, 2024
bdf9e65
chore: Updated coverage badge.
actions-user Jan 17, 2024
5f2ba75
refactor(http-stress-test): remove bulk code
Onyxmoon Jan 17, 2024
19018c7
test(user-service): add test for local auth middleware
Onyxmoon Jan 17, 2024
25e70c9
Merge 19018c7ca8dba02be6963c1397d76a6f995c6fbc into dc0a535767c40897b…
Onyxmoon Jan 17, 2024
a2617fa
chore: Updated coverage badge.
actions-user Jan 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ The complete application can be deployed within a kubernetes cluster.
```shell
kubectl apply -R -f ./kubernetes/manifests
```

5. The main page can be accessed via the public port of the `HTTP Proxy Service` container.
Monitoring can be accessed via the Grafana public port. There is an example dashboard configuration file at [kubernetes/grafana](kubernetes/grafana/dashboard-config.json).
## Setup project in Docker
### Requirements
- Docker Compose version v2.23.3
Expand Down
24 changes: 13 additions & 11 deletions src/shoppinglist-service/api/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,19 @@ func New(
) *Router {
r := router.New()

r.GET("/api/v1/shoppinglist/:userId", (*shoppingListController).GetLists, authMiddleware)
r.GET("/api/v1/shoppinglist/:listId/:userId", (*shoppingListController).GetList, authMiddleware)
r.PUT("/api/v1/shoppinglist/:listId/:userId", (*shoppingListController).PutList, authMiddleware)
r.POST("/api/v1/shoppinglist/:userId", (*shoppingListController).PostList, authMiddleware)
r.DELETE("/api/v1/shoppinglist/:listId", (*shoppingListController).DeleteList, authMiddleware)

r.GET("/api/v1/shoppinglistentries/:listId", (*shoppingListEntryController).GetEntries, authMiddleware)
r.GET("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).GetEntry, authMiddleware)
r.PUT("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).PutEntry, authMiddleware)
r.POST("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).PostEntry, authMiddleware)
r.DELETE("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).DeleteEntry, authMiddleware)
r.RegisterMiddleware(authMiddleware)

r.GET("/api/v1/shoppinglist/:userId", (*shoppingListController).GetLists)
r.GET("/api/v1/shoppinglist/:listId/:userId", (*shoppingListController).GetList)
r.PUT("/api/v1/shoppinglist/:listId/:userId", (*shoppingListController).PutList)
r.POST("/api/v1/shoppinglist/:userId", (*shoppingListController).PostList)
r.DELETE("/api/v1/shoppinglist/:listId", (*shoppingListController).DeleteList)

r.GET("/api/v1/shoppinglistentries/:listId", (*shoppingListEntryController).GetEntries)
r.GET("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).GetEntry)
r.PUT("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).PutEntry)
r.POST("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).PostEntry)
r.DELETE("/api/v1/shoppinglistentries/:listId/:productId", (*shoppingListEntryController).DeleteEntry)

return &Router{r}
}
Expand Down
Loading