This is the Angular frontend of the Phonebook Application, designed to interact with a .NET Core Web API backend. It allows users to manage their phonebook contacts efficiently with a user-friendly interface powered by Angular Material.
- Angular 17+
- Angular Material
- TypeScript
- RxJS
- SCSS/CSS for styling
- Integration with REST API (ASP.NET Core + SQLite)
project-root/
β
βββ PhonebookApi/ # .NET Core API backend
βββ phonebook-angular/ # Angular frontend-
Navigate to the
PhonebookApidirectory. -
Restore NuGet packages:
dotnet restoreRun the Web API:
dotnet runThis will start the backend server at:
The main API endpoint for contacts: https://localhost:5209/api/contacts
π§ͺ Swagger Documentation: Visit the Swagger UI at π http://localhost:5209/swagger/index.html
2οΈβ£ Start the Frontend (Angular App) Navigate to the phonebook-angular folder.
Install dependencies:
npm install
ng serveπ§± Angular Material Modules Used MatTableModule
MatFormFieldModule
MatInputModule
MatIconModule
MatButtonModule
MatDialogModule
MatToolbarModule
MatCardModule
MatSnackBarModule
β¨ Features β Add new contacts
β Edit and delete contacts
β Display all contacts using Angular Material table
β Modal-based form dialog for create/update
β Form validation and user-friendly feedback
β Responsive UI with Angular Material
π Folder Structure (Angular)
src/
βββ app/
β βββ components/
β β βββ contact-list/
β β βββ contact-add/
β βββ services/
β β βββ contact.service.ts
β βββ app.module.ts
βββ environments/
β βββ environment.ts
βββ main.ts