Skip to content

Feat/ add docker support to solution#11

Open
9Queens wants to merge 14 commits into
Accepted-GR:mainfrom
9Queens:feat/-add-docker-support-to-solution
Open

Feat/ add docker support to solution#11
9Queens wants to merge 14 commits into
Accepted-GR:mainfrom
9Queens:feat/-add-docker-support-to-solution

Conversation

@9Queens

@9Queens 9Queens commented Jul 6, 2026

Copy link
Copy Markdown

Add Docker support with multi-stage build and compose files

  • Multi-stage Dockerfile for optimized builds
  • Docker Compose for dev/prod/test environments
  • Fix TokenService HttpClient registration and auth payload
  • Update API configuration for correct upstream paths
  • Add Docker documentation
  • GETTING_STARTED.md file added for the readers to start operating using docker

Konstantinos Georgomitros added 14 commits July 5, 2026 13:09
…I config

- Replace per-instance HttpClient with typed HttpClient via IHttpClientFactory
- Remove BuildServiceProvider anti-pattern; accept IConfiguration in DefaultConfiguration
- Inject HttpClient into ProductsService and make JSON deserialization null-safe with logging
- Pass builder.Configuration into registration calls in Program.cs
- Add GetProductById/CreateProduct to IProductsService and ProductsService, exttending API endpoints, and include unit tests
- Test project added + ProductService tests added
- Add TokenService, AuthenticationDelegatingHandler, DI wiring and memory cache
- Attach Bearer token to typed HttpClients and add unit tests (token + handler)
- add PerformanceLoggingMiddleware Measure incoming request duration and log warnings when requests exceed configured threshold; support excluded paths.
- add HttpClientMetricsHandler Measure outgoing HttpClient call durations and emit structured metrics/warnings based on performance settings.
- register metrics handler and middleware Register HttpClientMetricsHandler and AuthenticationDelegatingHandler with typed HttpClients and add PerformanceLoggingMiddleware to pipeline.
- add unit tests for performance logging and metrics Add tests for slow incoming requests and slow outgoing HttpClient calls; add TestLogger helpers and console output for visibility.
 - move validators/mappers to Mapping/Validation
 - add upstream category mapper
 - DI helpers, injectable API validators
 - more unit tests.
- Multi-stage Dockerfile for optimized builds
- Docker Compose for dev/prod/test environments
- Fix TokenService HttpClient registration and auth payload
- Update API configuration for correct upstream paths
- Add Docker documentation
- GETTING_STARTED.md file added for the readers to start operating using docker
@9Queens

9Queens commented Jul 6, 2026

Copy link
Copy Markdown
Author

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant