How kirillfty/testproject works
This repository implements a contact-management application: users can view, create, update, and delete contacts through a Vue frontend and an ASP.NET API. The API routes requests through MediatR handlers to SQLite-backed contact storage; missing records and other exceptions become problem responses. The frontend’s page and supporting modules are represented, but their internal wiring and connection to the API are not asserted because the excerpts do not show those relationships. The frontend-to-backend boundary is likewise not documented in the available evidence.
Main entry points: ContactController.cs Contact routes · ApplicationDbContext.cs Contact data access · NotFoundException.cs Not-found error · UpdateContactCommand.cs Update contact
Components 23
Contact frontend
- App root
Test.Frontend/src/App.vue - Contacts page
Test.Frontend/src/pages/ContactsPage.vue - API client
Test.Frontend/src/api/client.ts - Contact state
Test.Frontend/src/composables/useContacts.ts - Contact form
Test.Frontend/src/composables/useContactForm.ts - Contacts table
Test.Frontend/src/components/ContactsTable.vue - Contact modal
Test.Frontend/src/components/ContactModal.vue - Confirmation modal
Test.Frontend/src/components/ConfirmModal.vue - Phone input
Test.Frontend/src/components/PhoneInput.vue - Country data
Test.Frontend/src/data/countries.ts - Contact type
Test.Frontend/src/types/contact.ts
HTTP API
- API host
Test.Backend/Program.cs - Contact routes
Test.Backend/Controller/ContactController.cs
Contact operations
- Add contact
Test.Backend/Features/Contacts/Commands/AddContact/AddContactCommand.cs - Update contact
Test.Backend/Features/Contacts/Commands/UpdateContact/UpdateContactCommand.cs - Delete contact
Test.Backend/Features/Contacts/Commands/DeleteContact/DeleteContactCommand.cs - List contacts
Test.Backend/Features/Contacts/Queries/GetAll/GetAllContactsQuery.cs - Get contact
Test.Backend/Features/Contacts/Queries/GetById/GetContactByIdQuery.cs
Contact persistence
- Contact data access
Test.Backend/Database/ApplicationDbContext.cs - Contact record
Test.Backend/Database/Entitty/Contact.cs
Error handling
- Problem responses
Test.Backend/Common/Exceptions/GlobalExceptionHandler.cs - Not-found error
Test.Backend/Common/Exceptions/NotFoundException.cs
Other components
- User
Connections 19
- User → App root: uses
- App root → Contacts page: renders
Test.Frontend/src/App.vue - API host → Contact routes: maps routes
Test.Backend/Program.cs - Contact routes → List contacts: dispatches
Test.Backend/Controller/ContactController.cs - Contact routes → Add contact: dispatches
Test.Backend/Controller/ContactController.cs - Contact routes → Get contact: dispatches
Test.Backend/Controller/ContactController.cs - Contact routes → Update contact: dispatches
Test.Backend/Controller/ContactController.cs - Contact routes → Delete contact: dispatches
Test.Backend/Controller/ContactController.cs - Add contact → Contact data access: writes
Test.Backend/Features/Contacts/Commands/AddContact/AddContactCommand.cs - Update contact → Contact data access: reads and writes
Test.Backend/Features/Contacts/Commands/UpdateContact/UpdateContactCommand.cs - Delete contact → Contact data access: deletes
Test.Backend/Features/Contacts/Commands/DeleteContact/DeleteContactCommand.cs - List contacts → Contact data access: queries
Test.Backend/Features/Contacts/Queries/GetAll/GetAllContactsQuery.cs - Get contact → Contact data access: queries
Test.Backend/Features/Contacts/Queries/GetById/GetContactByIdQuery.cs - Contact data access → Contact record: exposes
Test.Backend/Database/ApplicationDbContext.cs - Update contact → Not-found error: throws
Test.Backend/Features/Contacts/Commands/UpdateContact/UpdateContactCommand.cs - Delete contact → Not-found error: throws
Test.Backend/Features/Contacts/Commands/DeleteContact/DeleteContactCommand.cs - Get contact → Not-found error: throws
Test.Backend/Features/Contacts/Queries/GetById/GetContactByIdQuery.cs - API host → Problem responses: registers
Test.Backend/Program.cs - Problem responses → Not-found error: handles
Test.Backend/Common/Exceptions/GlobalExceptionHandler.cs