From fd94733873cadfe7fb2d015aa3b5ed4dfb5ed725 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Tue, 28 Apr 2026 15:51:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D0=BB=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D0=BE=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WeatherForecastController.cs | 25 ------------------- backend/UniVerse/Dockerfile | 23 ----------------- backend/UniVerse/Program.cs | 21 ---------------- .../UniVerse/Properties/launchSettings.json | 14 ----------- backend/UniVerse/UniVerse.csproj | 20 --------------- backend/UniVerse/WeatherForecast.cs | 12 --------- backend/UniVerse/appsettings.Development.json | 8 ------ backend/UniVerse/appsettings.json | 9 ------- 8 files changed, 132 deletions(-) delete mode 100644 backend/UniVerse/Controllers/WeatherForecastController.cs delete mode 100644 backend/UniVerse/Dockerfile delete mode 100644 backend/UniVerse/Program.cs delete mode 100644 backend/UniVerse/Properties/launchSettings.json delete mode 100644 backend/UniVerse/UniVerse.csproj delete mode 100644 backend/UniVerse/WeatherForecast.cs delete mode 100644 backend/UniVerse/appsettings.Development.json delete mode 100644 backend/UniVerse/appsettings.json diff --git a/backend/UniVerse/Controllers/WeatherForecastController.cs b/backend/UniVerse/Controllers/WeatherForecastController.cs deleted file mode 100644 index add8970..0000000 --- a/backend/UniVerse/Controllers/WeatherForecastController.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace UniVerse.Controllers; - -[ApiController] -[Route("[controller]")] -public class WeatherForecastController : ControllerBase -{ - private static readonly string[] Summaries = - [ - "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" - ]; - - [HttpGet(Name = "GetWeatherForecast")] - public IEnumerable Get() - { - return Enumerable.Range(1, 5).Select(index => new WeatherForecast - { - Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), - TemperatureC = Random.Shared.Next(-20, 55), - Summary = Summaries[Random.Shared.Next(Summaries.Length)] - }) - .ToArray(); - } -} \ No newline at end of file diff --git a/backend/UniVerse/Dockerfile b/backend/UniVerse/Dockerfile deleted file mode 100644 index 2d0888c..0000000 --- a/backend/UniVerse/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base -USER $APP_UID -WORKDIR /app -EXPOSE 8080 -EXPOSE 8081 - -FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build -ARG BUILD_CONFIGURATION=Release -WORKDIR /src -COPY ["UniVerse/UniVerse.csproj", "UniVerse/"] -RUN dotnet restore "UniVerse/UniVerse.csproj" -COPY . . -WORKDIR "/src/UniVerse" -RUN dotnet build "./UniVerse.csproj" -c $BUILD_CONFIGURATION -o /app/build - -FROM build AS publish -ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "./UniVerse.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "UniVerse.dll"] diff --git a/backend/UniVerse/Program.cs b/backend/UniVerse/Program.cs deleted file mode 100644 index 2f04047..0000000 --- a/backend/UniVerse/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -var builder = WebApplication.CreateBuilder(args); - -// Add services to the container. - -builder.Services.AddControllers(); -// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi -builder.Services.AddOpenApi(); - -var app = builder.Build(); - -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.MapOpenApi(); -} - -app.UseAuthorization(); - -app.MapControllers(); - -app.Run(); \ No newline at end of file diff --git a/backend/UniVerse/Properties/launchSettings.json b/backend/UniVerse/Properties/launchSettings.json deleted file mode 100644 index 385142c..0000000 --- a/backend/UniVerse/Properties/launchSettings.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/launchsettings.json", - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": false, - "applicationUrl": "http://localhost:5019", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/backend/UniVerse/UniVerse.csproj b/backend/UniVerse/UniVerse.csproj deleted file mode 100644 index b089931..0000000 --- a/backend/UniVerse/UniVerse.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - net10.0 - enable - enable - Linux - - - - - - - - - .dockerignore - - - - diff --git a/backend/UniVerse/WeatherForecast.cs b/backend/UniVerse/WeatherForecast.cs deleted file mode 100644 index 44c6627..0000000 --- a/backend/UniVerse/WeatherForecast.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace UniVerse; - -public class WeatherForecast -{ - public DateOnly Date { get; set; } - - public int TemperatureC { get; set; } - - public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - - public string? Summary { get; set; } -} \ No newline at end of file diff --git a/backend/UniVerse/appsettings.Development.json b/backend/UniVerse/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/backend/UniVerse/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/backend/UniVerse/appsettings.json b/backend/UniVerse/appsettings.json deleted file mode 100644 index 10f68b8..0000000 --- a/backend/UniVerse/appsettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -}