This repository contains a starter full-stack implementation for the "Bus Ticket Reservation System" assignment (Backend: .NET 9 + EF Core + PostgreSQL; Frontend: Angular).
The project includes:
- src/Domain: Domain entities and domain services
- src/Application: Application services (Search, Booking)
- src/Application.Contracts: DTOs and repository interfaces
- src/Infrastructure: EF Core DbContext and repository implementations
- src/WebApi: ASP.NET Core Web API
- tests: xUnit tests for application logic
- migrations: SQL scripts for creating DB schema
To run the backend locally (uses in-memory DB by default):
- dotnet run --project src/WebApi
- Browse to https://localhost:5001/swagger to see API endpoints (development)
To run tests:
- dotnet test
To configure PostgreSQL, set DefaultConnection in environment or appsettings.json and apply migrations/init.sql or create EF migrations from the Infrastructure project.
This is a baseline for the assignment — continue implementing the Angular client in src/ClientApp and polish UI/UX according to the provided screenshots.