Skip to content

pull code from main#5

Merged
ttd11204 merged 14 commits into3-ensure-frontend-backend-are-in-sync-by-generating-typescript-typesfrom
main
Jul 15, 2025
Merged

pull code from main#5
ttd11204 merged 14 commits into3-ensure-frontend-backend-are-in-sync-by-generating-typescript-typesfrom
main

Conversation

@ttd11204
Copy link
Copy Markdown
Collaborator

No description provided.

halinhtvn3a and others added 14 commits July 15, 2025 03:05
Introduces the new CourtCaller.Persistence project with entity configurations, DbContext, and data seeding infrastructure. Refactors DAOs and tests to use the new persistence layer, removing the old DbContext from DAOs. Cleans up and standardizes method signatures and imports, and removes the WeatherForecast sample controller and model from the API.
Added using statements for CourtCaller.Persistence in multiple repository test files and included a project reference to CourtCaller.Persistence in UnitTests.csproj. This ensures the test projects have access to the necessary persistence layer for testing.
…-end

feat: initialize CourtBooking using Tanstack and Bun
Introduces a robust database seeding system with configuration, dependency injection, and multiple seeding strategies. Adds migration for initial database creation, updates .gitignore, and modifies API startup to execute seeding in development. Also updates project files to include seed data and comments out direct role seeding in DbContext in favor of migration-based seeding.
Introduced seed data files for Bookings, Branches, Courts, News, Payments, Prices, RegistrationRequests, Reviews, TimeSlots, and UserDetails in the CourtCaller.Persistence/Data/Seed directory. These files provide sample data for application startup and testing, covering all major entities and their relationships as described in the included README.
Introduces a comprehensive ProductionDeploymentGuide.md detailing configuration, environment variables, seeding strategies, security, performance, monitoring, and deployment steps for running CourtCaller in Docker containers with production settings.
Refactored exception handling in JsonDataSeeder and FileReader to preserve original exception details and use more appropriate exception types. Updated BookingDAO to use FromSqlInterpolated for safer SQL queries. Modified PayLib to use ToLowerInvariant for IP address checks. Commented out appsettings.Development.json inclusion in CourtCaller.Persistence.csproj.
Introduced overloads for GetBranches and GetReview methods in DAOs, repositories, and services to support queries with and without status and search parameters. Updated method signatures to use nullable reference types and improved consistency across layers. Also changed some constants to static readonly for better flexibility.
Deleted redundant GetBranches methods that accepted only a status parameter from BranchDAO, BranchRepository, and BranchService. This streamlines the API and reduces maintenance of unused overloads.
Introduced a new BuildingBlocks.Logging project with Serilog integration, enrichers, and configuration options. Updated API to use the new logging setup and added the project reference. Refactored method signatures in DAOs, repositories, and services for consistency. Minor code formatting improvements and updated the solution file to include the new logging project.
@ttd11204 ttd11204 merged commit aaaaf6b into 3-ensure-frontend-backend-are-in-sync-by-generating-typescript-types Jul 15, 2025
1 of 2 checks passed
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.

3 participants