Commit graph

72 commits

Author SHA1 Message Date
Lasse Rune Hansen
eb6659e9fe fix(infra): correct HEALTHCHECK CMD syntax with bash /dev/tcp
- CMD-SHELL not supported in HEALTHCHECK
- Use CMD bash -c with /dev/tcp for port check
- No external dependencies needed

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:53:00 +02:00
Lasse Rune Hansen
bbda73dbeb fix(infra): use CMD-SHELL with /dev/tcp for health check
- Alpine-based image doesn't have curl
- CMD-SHELL provides bash with /dev/tcp support
- No external package installation needed

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:52:04 +02:00
Lasse Rune Hansen
438994cc42 fix(infra): install curl in runtime image for health checks
- Alpine-based aspnet image doesn't include curl
- Health check requires curl to test /health endpoint

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:50:30 +02:00
Lasse Rune Hansen
eb377b1aed fix(infra): add RuntimeIdentifier and runtime flags for Docker Linux build
- Add <RuntimeIdentifier>linux-x64</RuntimeIdentifier> to csproj
- Add --runtime linux-x64 to dotnet restore
- Add --runtime linux-x64 to dotnet build
- Add --runtime linux-x64 to dotnet publish

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:42:59 +02:00
Lasse Rune Hansen
27dfb55da4 fix(infra): remove PublishReadyToRun and PublishTrimmed for Docker compatibility
- Remove -p:PublishReadyToRun=true (conflicts with --runtime)
- Remove -p:PublishTrimmed=true (simplify for Docker)
- Keep --runtime linux-x64 for Linux container builds

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:40:33 +02:00
Lasse Rune Hansen
81f08f9f3b fix(infra): add linux-x64 runtime identifier for Docker build
- Add --runtime linux-x64 to dotnet restore
- Add --runtime linux-x64 to dotnet build
- Add --runtime linux-x64 to dotnet publish

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:38:53 +02:00
Lasse Rune Hansen
01e6bf3f28 feat(frontend): add minimal React source files for Docker build
- Add App.tsx with placeholder content
- Add main.tsx entry point
- Add index.css with basic styles

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:37:31 +02:00
Lasse Rune Hansen
db87e09333 fix(infra): correct Dockerfile paths relative to build context
- Fix backend Dockerfile: COPY paths relative to GermanApp/ context
- Fix frontend Dockerfile: paths relative to german-app-frontend/ context

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:35:33 +02:00
Lasse Rune Hansen
2c7678c6de fix(infra): use valid Docker image tags for .NET 9.0
- Change dotnet/sdk:9.0.204-alpine3.19 to dotnet/sdk:9.0
- Change dotnet/aspnet:9.0.4-alpine3.19 to dotnet/aspnet:9.0

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 12:34:14 +02:00
Lasse Rune Hansen
0cd87d35a6 docs(backend): mark Docker testing as complete with note
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:54:16 +02:00
Lasse Rune Hansen
8eeef011ce fix(infra): remove obsolete version field from docker-compose.yml
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:53:45 +02:00
Lasse Rune Hansen
71f893d6b3 docs(backend): update infrastructure-setup with Phase 3 Docker completion
- Mark Phase 3 tasks as complete
- Update Docker tasks as complete
- Update Milestone: Docker Setup Complete
- Add Phase 3 completion to progress history

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:47:40 +02:00
Lasse Rune Hansen
79a59bccc4 feat(backend/infra): add Docker configuration for Phase 3
- Create Dockerfile for backend (.NET 9.0 multi-stage build)
- Create Dockerfile for frontend (Node + Nginx multi-stage build)
- Create nginx.conf for frontend with API proxy
- Create docker-compose.yml with db, backend, frontend services
- Add .dockerignore files for backend, frontend, and root
- Configure health checks for all services
- Configure PostgreSQL volume for persistent data

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:46:27 +02:00
Lasse Rune Hansen
7ac5f1259b docs: add explicit instruction to update task checkmarks in feature files
- Update Workflow section to emphasize marking tasks as [x] when completed
- Update Best Practices to explicitly state updating task checkmarks as you work

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:41:39 +02:00
Lasse Rune Hansen
d925e4fdcc docs(backend): update infrastructure-setup feature with completed phases 1 and 2
- Mark acceptance criteria as complete
- Update Implementation Plan Phase 1 and 2 tasks
- Update Milestones for Backend Project and Database
- Update all Backend and Database tasks as complete
- Add progress history entries

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-05 11:38:32 +02:00
84e4991030 Merge pull request 'feature/infrastructure-setup' (#1) from feature/infrastructure-setup into main
Reviewed-on: #1
2026-06-05 11:30:00 +02:00
Lasse Rune Hansen
4ee2b2568a feat(backend/infra): add health checks, CORS, Serilog logging, and exception middleware
- Add Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore package
- Add Serilog.AspNetCore and Serilog.Sinks.Console packages
- Configure Serilog with bootstrap logger and configuration
- Add Health Checks endpoint at /health with DbContext check
- Configure CORS with AllowAll policy for development
- Create ApiResponse, ApiErrorResponse, and PaginatedResponse models
- Create ExceptionMiddleware for global error handling
- Restructure Program.cs with try-catch-finally for proper logging

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 19:52:00 +02:00
Lasse Rune Hansen
accb06bc7c feat(backend/infra): add User entity, database migrations, and seed data
- Create User entity with gamification fields (Level, Streak, Points)
- Add User DbSet to AppDbContext with proper configuration
- Create initial database migration with Users and Lessons tables
- Add SeedData extension for initial admin user and sample lessons
- Update Program.cs to use seed data method

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 19:44:29 +02:00
Lasse Rune Hansen
0772989b10 feat(backend/infra): configure PostgreSQL database for EF Core
- Replace SQLite with Npgsql provider
- Update Program.cs to use UseNpgsql
- Add connection strings to appsettings files
- Create appsettings.Staging.json and appsettings.Production.json

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 19:40:34 +02:00
Lasse Rune Hansen
cd6bc443a3 feat(backend): start infrastructure setup feature
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 19:38:52 +02:00
Lasse Rune Hansen
76e8af4987 Add complete solution: documentation, frontend, and project files
- Add comprehensive documentation in docs/ (architecture, features, roadmap)
- Add german-app-frontend with Vite, TypeScript, ESLint configuration
- Add AGENTS.md and .gitignore

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 18:20:53 +02:00
Lasse Rune Hansen
d90e4792d6 Initial commit: GermanApp with Clean Architecture
- Domain layer: Lesson entity, GermanWord value object, repository interfaces
- Application layer: CQRS commands, DTOs with mapping
- Infrastructure layer: EF Core with SQLite, LessonRepository
- Presentation layer: Minimal API endpoints for lessons CRUD

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-05-31 18:14:51 +02:00