Skip to content

Add truck booking SPA flow (API, DTOs, Angular view/controller)#1

Open
Ajaygoel wants to merge 1 commit intomasterfrom
codex/create-web-app-for-trucks-booking-system
Open

Add truck booking SPA flow (API, DTOs, Angular view/controller)#1
Ajaygoel wants to merge 1 commit intomasterfrom
codex/create-web-app-for-trucks-booking-system

Conversation

@Ajaygoel
Copy link
Owner

@Ajaygoel Ajaygoel commented Feb 7, 2026

Motivation

  • Provide a simple truck booking workflow so trucks can be reserved independently of containers and drivers.
  • Deliver a minimal end-to-end demo with an in-memory backend and a single-page Angular UI to exercise common booking actions.

Description

  • Added DTOs domain/DTO/Truck.cs, domain/DTO/TruckBooking.cs, and domain/DTO/TruckBookingRequest.cs to model trucks and bookings.
  • Implemented a new API controller DemoCargoClix/Controllers/TruckBookingsController.cs exposing GetTrucks, GetBookings, GetBooking, and CreateBooking backed by in-memory lists.
  • Added an Angular route /truck-bookings in DemoCargoClix/Scripts/app/app.js, a TruckBookingsCtrl in DemoCargoClix/Scripts/app/controllers.js, and the UI in DemoCargoClix/Views/TruckBookings.cshtml to list trucks, create bookings, and show recent bookings.
  • Updated project files (domain/domain.csproj, DemoCargoClix/DemoCargoClix.csproj) to include the new DTOs, controller, and view, and added lightweight styles to DemoCargoClix/Content/app.css.

Testing

  • No automated tests were executed against these changes.
  • No CI/build verification was run in this environment.

Codex Task

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant