Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Clients & Vehicles

A small ASP.NET Core Razor Pages app for managing workshop clients and the vehicles they own. Clients and vehicles, create/edit/list, search, validation, EF Core with SQLite.

Screens

Clients Client detail
Client list with search A client and their vehicles
Vehicles New vehicle
Vehicle list Vehicle form

Searching 12ab34 on the Clients page finds the owner of plate 12-AB-34:

Searching by plate returns the owner

At phone width the table scrolls inside its own card instead of stretching the page:

Client list at 390px

Running it

Needs the .NET 8 SDK. Nothing else: no database to install, no configuration to edit.

dotnet run --project src/ClientVehicles.Web

Then open the URL printed in the console (http://localhost:5000 by default).

The database is created and seeded with demo data on first start. Deleting src/ClientVehicles.Web/clientvehicles.db and restarting resets it.

Tests

dotnet test

60 tests. They run against real SQLite rather than a fake in-memory provider, because several of them check database constraints that a fake doesn't enforce.

Layout

src/ClientVehicles.Web/
  Domain/          Client, Vehicle
  Data/            DbContext, entity configuration, migrations, demo data
  Services/        search normalization and the rules that need the database
  Pages/           Clients/, Vehicles/
tests/ClientVehicles.Tests/

NOTES.md covers what was built, what was tested, and what was left out of scope.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages