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": "*" -}