Commit Graph

7 Commits

Author SHA1 Message Date
Anatolii Grynchuk a8bc26fe38 feat: add Migrator console project
- Dedicated HrynCo.NotificationService.Migrator console app
- Reads App:ConnectionString from config/env
- Calls db.Database.MigrateAsync() with clear log output
- Own Dockerfile (runtime:10.0 base, no SDK overhead)
- Replaces SDK volume-mount approach in docker-compose
- Added to solution with /docker/Migrator/ folder

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 02:24:45 +03:00
Anatolii Grynchuk ab44ad117c refactor: rename Api project to Web
- HrynCo.NotificationService.Api -> HrynCo.NotificationService.Web
- HrynCo.NotificationService.Api.IntegrationTests -> HrynCo.NotificationService.Web.IntegrationTests
- Updated slnx, docker-compose, project references, and namespaces
- Project serves both REST API and admin UI

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 01:55:57 +03:00
Anatolii Grynchuk 3bead79ca0 chore: organize Dockerfiles into Api/Worker sub-folders in solution
Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 01:34:42 +03:00
Anatolii Grynchuk 6a31f380a2 chore: add Dockerfiles for Api and Worker
- Api: mcr.microsoft.com/dotnet/aspnet:10.0 base, exposes 8080
- Worker: mcr.microsoft.com/dotnet/runtime:10.0 base (no HTTP stack)
- Both use multi-stage build with layer-cached csproj restore
- .dockerignore excludes bin/obj/git/IDE folders
- Dockerfiles added to /docker/ solution folder

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 01:33:22 +03:00
Anatolii Grynchuk ae724e4aee chore: add docker compose files and solution folder
- docker/environments/docker-compose.yml: base Api + Worker service definitions
- docker/environments/docker-compose.Development.yml: local PostgreSQL + Seq + port mappings
- Solution folder /docker/ in .slnx for IDE access

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-02 01:31:40 +03:00
Anatolii Grynchuk ed4a6578c3 refactor: restructure solution to match ItemTracker layered architecture
- Remove Core (replaced by dedicated layers)
- Add DAL.Abstract (domain model + repository interfaces)
- Add DAL.EF (EF context, entities, migrations — references DAL.Abstract)
- Add Services (business logic — references DAL.Abstract only, not DAL.EF)
- Api and Worker reference Services + DAL.EF for DI wiring
- Replace Core.Tests with Services.Tests
- Dependency boundary enforced: Services never references DAL.EF

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 19:17:26 +03:00
Anatolii Grynchuk 8aee35c123 chore: scaffold solution with Core, Api, Worker and test projects
- HrynCo.NotificationService.Core (class library)
- HrynCo.NotificationService.Api (ASP.NET Core Web API)
- HrynCo.NotificationService.Worker (Worker Service)
- HrynCo.NotificationService.Core.Tests (xUnit)
- HrynCo.NotificationService.Api.IntegrationTests (xUnit)
- Api and Worker reference Core
- Test projects reference their respective targets

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-01 18:54:38 +03:00