Skip to content

Commit c61e826

Browse files
authored
Upgrade .Net 8 and Angular 17 (#12)
* dotnet update * update fix * readme update
1 parent 25fcc46 commit c61e826

File tree

18 files changed

+3656
-15082
lines changed

18 files changed

+3656
-15082
lines changed

Api/Application/Application.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageReference Include="AutoMapper" Version="12.0.1" />

Api/Debug.Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM mcr.microsoft.com/dotnet/runtime:8.0-preview AS base
2+
WORKDIR /app
3+
4+
USER app
5+
FROM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build
6+
ARG configuration=Release
7+
WORKDIR /src
8+
COPY ["WebApi/WebApi.csproj", "WebApi/"]
9+
COPY ["Application/Application.csproj", "Application/"]
10+
COPY ["Domain/Domain.csproj", "Domain/"]
11+
COPY ["Infrastructure.Shared/Infrastructure.Shared.csproj", "Infrastructure.Shared/"]
12+
COPY ["Infrastructure.Identity/Infrastructure.Identity.csproj", "Infrastructure.Identity/"]
13+
COPY ["Infrastructure.Persistence/Infrastructure.Persistence.csproj", "Infrastructure.Persistence/"]
14+
RUN dotnet restore "WebApi/WebApi.csproj"
15+
COPY . .
16+
WORKDIR "/src/WebApi"
17+
18+
RUN dotnet build "WebApi.csproj" -c $configuration -o /app/build
19+
20+
21+
FROM build AS publish
22+
ARG configuration=Release
23+
RUN dotnet publish "WebApi.csproj" -c $configuration -o /app/publish /p:UseAppHost=false
24+
25+
FROM base AS final
26+
WORKDIR /app
27+
COPY --from=publish /app/publish .
28+
ENTRYPOINT ["dotnet", "WebApi.dll"]

Api/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
22

3-
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
3+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
44
WORKDIR /app
55
EXPOSE 8000
66
ENV ASPNETCORE_URLS=http://+:8000
@@ -9,7 +9,7 @@ RUN groupadd -g 2000 dotnet \
99
USER dotnet
1010

1111

12-
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
12+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1313
WORKDIR /src
1414
COPY ["WebApi/WebApi.csproj", "WebApi/"]
1515
COPY ["Application/Application.csproj", "Application/"]

Api/Domain/Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

Api/Infrastructure.Identity/Infrastructure.Identity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<LangVersion>latest</LangVersion>
55
</PropertyGroup>
66
<ItemGroup>

Api/Infrastructure.Persistence/Infrastructure.Persistence.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Version>1.1.0</Version>
66
</PropertyGroup>
77

Api/Infrastructure.Shared/Infrastructure.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Version>1.1.0</Version>
66
<LangVersion>latest</LangVersion>
77
</PropertyGroup>

Api/WebApi/WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net7.0</TargetFramework>
3+
<TargetFramework>net8.0</TargetFramework>
44
<UserSecretsId>13baa941-0ae9-449c-8360-2fa7150a14fa</UserSecretsId>
55
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
66
</PropertyGroup>

Api/WebApi/WebApi.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebApi", "WebApi.csproj", "{4EC4CF00-9D2F-4DA2-ADAF-2637665E502E}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{4EC4CF00-9D2F-4DA2-ADAF-2637665E502E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{4EC4CF00-9D2F-4DA2-ADAF-2637665E502E}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{4EC4CF00-9D2F-4DA2-ADAF-2637665E502E}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{4EC4CF00-9D2F-4DA2-ADAF-2637665E502E}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {336FA339-B988-46C5-97C0-DA395E5EFB1F}
24+
EndGlobalSection
25+
EndGlobal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Full Stack (dotnet, angular and postgres) boilerplate with Docker
22
### About (Dotnet - Angular - PostgresSQL)
3-
This project is intended to provide a starting point for building full-stack web applicatioin. The stack is made of Dotnet(7) WebApi, Angular (16.2.10), PostgresSQL. The focus of this project to show case the possible way to run a real application (Dotnet, Angular and PostgresSQL) using docker for development enviornment and produciton mode.
3+
This project is intended to provide a starting point for building full-stack web applicatioin. The stack is made of Dotnet(7) WebApi, Angular (17.0.3), PostgresSQL. The focus of this project to show case the possible way to run a real application (Dotnet, Angular and PostgresSQL) using docker for development enviornment and produciton mode.
44

55
This is a simple web application. It has working user registration, login page and there is a complete example of CRUD which contains example for Angular Routing and dotnet rest api samples. Also, rest services are secure using JWT.
66

@@ -27,7 +27,7 @@ The apps written in the following JavaScript frameworks/libraries:
2727
| **WebApi** | [Rest Api using **dotnet**](https://github.com/nitin27may/angular-dotnet-core-docker/tree/master/WebApi) |
2828

2929
### Built With
30-
#### Angular (16.2.10)
30+
#### Angular (17.0.3)
3131

3232
The fronend of this project is developed in Angular. As we are using Server Side Rendering (SSR) we have used Nodejs alpine image in place of other lightweight docker image like nginx to run Angular app.
3333

@@ -44,7 +44,7 @@ Also, it has sample code for Auth guard, services, http interceptors, resolver a
4444
**[Dockerfile for Production](/frontend/Dockerfile)**
4545
**[Dockerfile for Development](/frontend/debug.dockerfile)**
4646

47-
#### Dotnet (7.0.0)
47+
#### Dotnet (8.0.0)
4848

4949
Rest APis of this project is devloped using dotnet
5050

0 commit comments

Comments
 (0)