Skip to content

About

Kitty Hawk Air Tours dispatch console: the shared application for the Copilot from Zero to Control workshop

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Kitty Hawk Air Tours: Dispatch Console

The shared application for the Xebia workshop "Copilot from Zero to Control".

Kitty Hawk Air Tours flies sightseeing tours over North Carolina's Outer Banks. The dispatch console lists the fleet, shows the flight schedule, and lets a dispatcher assign aircraft to flights.

Stack

  • .NET 10, ASP.NET Core Razor Pages and Minimal APIs
  • EF Core with SQLite
  • xUnit for unit and integration tests, NUnit and Playwright for browser tests

Get started

GitHub Codespaces: create a codespace on main. The container builds the solution and installs the Playwright browser in the background.

Local clone: install the .NET SDK version listed in global.json. The browser tests also need PowerShell 7 (pwsh).

dotnet build
dotnet run --project src/FlightDispatch.Web

Open http://localhost:5080. In a codespace, use the forwarded port 5080 from the Ports tab.

Menu Shows
Fleet The aircraft
Flights The flight schedule with assigned aircraft
Assign A form for assigning an aircraft to a flight

The app stores its data in src/FlightDispatch.Web/App_Data/flightdispatch.db. To start over with the seed data, stop the app and run:

dotnet run --project src/FlightDispatch.Web -- --reset-database

Run the tests

dotnet test tests/FlightDispatch.UnitTests
dotnet test tests/FlightDispatch.IntegrationTests

The browser tests start their own copy of the app and need Chromium, which a local clone installs once after dotnet build:

pwsh tests/FlightDispatch.PlaywrightTests/bin/Debug/net10.0/playwright.ps1 install chromium
dotnet test tests/FlightDispatch.PlaywrightTests

Repository layout

Path Contents
src/FlightDispatch.Web The dispatch console: Razor Pages and Minimal APIs over EF Core and SQLite
tests/FlightDispatch.UnitTests xUnit tests for the services
tests/FlightDispatch.IntegrationTests xUnit tests that run the API and pages in memory
tests/FlightDispatch.PlaywrightTests NUnit and Playwright browser tests
.devcontainer/ The GitHub Codespaces environment
.github/workflows/ CI and the Copilot cloud agent setup steps

License

This repository is proprietary and for use in authorized Xebia training only. See LICENSE.

About

Kitty Hawk Air Tours dispatch console: the shared application for the Copilot from Zero to Control workshop

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages