Skip to content

Commit

Permalink
Update to .NET 9 and Angular 19 (#4)
Browse files Browse the repository at this point in the history
* update to .NET9 and update packages

* update to Angular 19

- update primeng and add themes

* update readme
  • Loading branch information
Gramli authored Feb 5, 2025
1 parent ac5ccec commit 530f853
Show file tree
Hide file tree
Showing 18 changed files with 5,628 additions and 5,415 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Example API allows to:
Endpoints use different types of authorization policies.

# Menu
- [Clean Architecture AuthApi](#clean-architecture-authapi)
- [Menu](#menu)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Get Started](#get-started)
Expand All @@ -22,13 +24,15 @@ Endpoints use different types of authorization policies.
- [Test Using .http file (VS2022)](#test-using-http-file-vs2022)
- [Motivation](#motivation)
- [Backend Architecture](#backend-architecture)
- [Key Patterns and Decisions:](#key-patterns-and-decisions)
- [Frontend Structure](#frontend-structure)
- [JWT Handling](#jwt-handling)
- [Technologies](#technologies)

# Prerequisites
* **.NET SDK 8.0+**
* **Angular CLI 18+**
* **Node.js 18.19.1+**
* **.NET SDK 9.0+**
* **Angular CLI 19+**
* **Node.js 20.11.1+**

# Installation
To install the project using Git Bash:
Expand Down Expand Up @@ -76,7 +80,7 @@ Select the **Auth.API** startup item in VS or Rider and try it.
![SwaggerUI](./doc/img/login.gif)

## Test Using .http file (VS2022)
* Go to Tests/HttpDebugTests folder and open **debug-tests.http** file (in VS2022
* Go to Tests/HttpDebugTests folder and open **debug-tests.http** file in VS2022
* Send Login request
* Obtain jwtToken from response and use it in another requests in Authorization header

Expand Down Expand Up @@ -104,13 +108,13 @@ This example demonstrates JWT token management on the client side. After obtaini
The project uses **PrimeNG** and **PrimeFlex** for styling and layout.

## Technologies
* [ASP.NET Core 8](https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-8.0)
* [ASP.NET Core 9](https://learn.microsoft.com/en-us/aspnet/core/introduction-to-aspnet-core?view=aspnetcore-9.0)
* [Entity Framework Core InMemory](https://learn.microsoft.com/en-us/ef/core/providers/in-memory/?tabs=dotnet-core-cli)
* [Mapster](https://github.com/MapsterMapper/Mapster)
* [SmallApiToolkit](https://github.com/Gramli/SmallApiToolkit)
* [FluentResuls](https://github.com/altmann/FluentResults)
* [Validot](https://github.com/bartoszlenar/Validot)
* [GuardClauses](https://github.com/ardalis/GuardClauses)
* [Moq](https://github.com/moq/moq4)
* [Xunit](https://github.com/xunit/xunit)
* [Angular 18](https://angular.dev)
* [Angular 19](https://angular.dev)
* [PrimeNG](https://primeng.org)
* [PrimeFlex](https://primeflex.org)
10 changes: 5 additions & 5 deletions src/Auth.Api/Auth.Api.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.1" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="SmallApiToolkit" Version="1.0.0.6" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
<PackageReference Include="SmallApiToolkit" Version="1.0.0.7" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions src/Auth.Core/Auth.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Ardalis.GuardClauses" Version="5.0.0" />
<PackageReference Include="FluentResults" Version="3.16.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="SmallApiToolkit.Core" Version="1.0.0.6" />
<PackageReference Include="Validot" Version="2.5.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="9.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.1" />
<PackageReference Include="SmallApiToolkit.Core" Version="1.0.0.7" />
<PackageReference Include="Validot" Version="2.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Auth.Domain/Auth.Domain.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Loading

0 comments on commit 530f853

Please sign in to comment.