Sample address book application
- .Net Core 3
- Entity Framework 5
- AddressBook.Api
- Point of access to the backend application, api controllers, mappings, validators.
- AddressBook.Core
- Core logic of application, contracts, interfaces etc.
- AddressBook.Data
- Data access layer.
- AddressBook.Services
- Business logic - for this level of complexity can be combined with Core project, but I moved this to a separate project to demonstrate the idea.
- Angular 10
- Ngrx 10
- Angular Material (for UI components)
- Bootstrap (for layout)
- Restore NuGet packages
- Update connection string in
appsettings.Development.json
file in AddressBook.Api project - Run
Update-Database
in Package Manager Console for AddressBook.Data project to create and seed DB - Start with IIS Express
- Navigate to https://localhost:44323/api/contacts
- Run
npm install
- Make sure server is running on port 44323
- Run
ng serve
- Navigate to http://localhost:4200/
- Run unit tests with
ng test
- Run lint with
ng lint