From ffadc29a7555e65fc4b5d961d42c877e5fd2cbf0 Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Sat, 20 Apr 2024 12:20:15 +0200 Subject: [PATCH] adding js client project --- WD7UVN_HFT_2023241.sln | 6 +++ WD7UVN_SzTGUI_2023242.Client.JS/Program.cs | 26 ++++++++++++ .../Properties/launchSettings.json | 28 +++++++++++++ WD7UVN_SzTGUI_2023242.Client.JS/Startup.cs | 42 +++++++++++++++++++ .../WD7UVN_SzTGUI_2023242.Client.JS.csproj | 7 ++++ .../appsettings.Development.json | 9 ++++ .../appsettings.json | 10 +++++ 7 files changed, 128 insertions(+) create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/Program.cs create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/Properties/launchSettings.json create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/Startup.cs create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/WD7UVN_SzTGUI_2023242.Client.JS.csproj create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/appsettings.Development.json create mode 100644 WD7UVN_SzTGUI_2023242.Client.JS/appsettings.json diff --git a/WD7UVN_HFT_2023241.sln b/WD7UVN_HFT_2023241.sln index 29b79c0..a4f7743 100644 --- a/WD7UVN_HFT_2023241.sln +++ b/WD7UVN_HFT_2023241.sln @@ -23,6 +23,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WD7UVN_HFT_2023241.Client.T EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WD7UVN_SzTGUI_2023242.Client.WPF", "WD7UVN_SzTGUI_2023242.Client.WPF\WD7UVN_SzTGUI_2023242.Client.WPF.csproj", "{0A994D03-066F-43E7-872E-4D239FC6F764}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WD7UVN_SzTGUI_2023242.Client.JS", "WD7UVN_SzTGUI_2023242.Client.JS\WD7UVN_SzTGUI_2023242.Client.JS.csproj", "{520CF5EB-5E09-40A1-AD92-1D1C498C643B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -57,6 +59,10 @@ Global {0A994D03-066F-43E7-872E-4D239FC6F764}.Debug|Any CPU.Build.0 = Debug|Any CPU {0A994D03-066F-43E7-872E-4D239FC6F764}.Release|Any CPU.ActiveCfg = Release|Any CPU {0A994D03-066F-43E7-872E-4D239FC6F764}.Release|Any CPU.Build.0 = Release|Any CPU + {520CF5EB-5E09-40A1-AD92-1D1C498C643B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {520CF5EB-5E09-40A1-AD92-1D1C498C643B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {520CF5EB-5E09-40A1-AD92-1D1C498C643B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {520CF5EB-5E09-40A1-AD92-1D1C498C643B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/Program.cs b/WD7UVN_SzTGUI_2023242.Client.JS/Program.cs new file mode 100644 index 0000000..32a1124 --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/Program.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; + +namespace WD7UVN_SzTGUI_2023242.Client.JS +{ + public class Program + { + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.UseStartup(); + }); + } +} diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/Properties/launchSettings.json b/WD7UVN_SzTGUI_2023242.Client.JS/Properties/launchSettings.json new file mode 100644 index 0000000..8409631 --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/Properties/launchSettings.json @@ -0,0 +1,28 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:25415", + "sslPort": 44361 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "WD7UVN_SzTGUI_2023242.Client.JS": { + "commandName": "Project", + "dotnetRunMessages": "true", + "launchBrowser": true, + "applicationUrl": "https://localhost:5001;http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/Startup.cs b/WD7UVN_SzTGUI_2023242.Client.JS/Startup.cs new file mode 100644 index 0000000..ba900ec --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/Startup.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +namespace WD7UVN_SzTGUI_2023242.Client.JS +{ + public class Startup + { + // This method gets called by the runtime. Use this method to add services to the container. + // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 + public void ConfigureServices(IServiceCollection services) + { + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IWebHostEnvironment env) + { + if (env.IsDevelopment()) + { + app.UseDeveloperExceptionPage(); + } + + app.UseStaticFiles(); + + app.UseRouting(); + + app.UseEndpoints(endpoints => + { + endpoints.MapGet("/", async context => + { + await context.Response.WriteAsync("Hello World!"); + }); + }); + } + } +} diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/WD7UVN_SzTGUI_2023242.Client.JS.csproj b/WD7UVN_SzTGUI_2023242.Client.JS/WD7UVN_SzTGUI_2023242.Client.JS.csproj new file mode 100644 index 0000000..9c9eaf6 --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/WD7UVN_SzTGUI_2023242.Client.JS.csproj @@ -0,0 +1,7 @@ + + + + net5.0 + + + diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.Development.json b/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.Development.json new file mode 100644 index 0000000..dba68eb --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.Development.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + } +} diff --git a/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.json b/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.json new file mode 100644 index 0000000..81ff877 --- /dev/null +++ b/WD7UVN_SzTGUI_2023242.Client.JS/appsettings.json @@ -0,0 +1,10 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "AllowedHosts": "*" +}