ghaagh / angular-dotnet-book-test

A test project using angular and .NET CORE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular auto history logger including the front-end project

Notes

  • The Domain Project and Infrastructure project are implemented inside 2 Folders in the application. They are completely separated from each other.
  • The SQL database dependency injection codes can be found on AddSqlExtension.cs. you can change the Book and Author database to anything Entity framework supports.
  • the BookHistoryEventHandler is responsible for saving changed data to storage. I used ADO.NET in order to minimize the external database dependency, but it can be changed to basically any database or file storage.
  • You can find the code for extracting the changes from the entity framework in ContextChangeHandler. It could be more generic so it would support logging changes for any table, but the time was limited.
  • Exception Handling is not implemented.

Version:

  • Angular: 11.2.14.
  • Angular CLI : Angular CLI: 11.2.18
  • .NET Version: 6.0.101

Running the backend.

  1. Select Book.Application Project,
  2. Change connection string in app.setting.
  3. Run the migration for creating an empty database. Or run TableAndData.sql against a newly created database to add tables and some random records.

Running the front-end.

  1. Change the address of back-end in client-http.service.ts File
  2. Run npm install.
  3. Run ng serve while the backend is running.

What you should see if everything is ok is : Snapshot

About

A test project using angular and .NET CORE


Languages

Language:C# 54.6%Language:TypeScript 28.7%Language:HTML 12.6%Language:JavaScript 2.1%Language:SCSS 1.8%Language:CSS 0.2%