From 1c60a625f14fcd824874b754a104fff298d2dc02 Mon Sep 17 00:00:00 2001 From: Robby Date: Wed, 9 Oct 2024 20:06:25 -0500 Subject: [PATCH] init --- .gitignore | 4 ++++ MinimalCloudlessAPI.csproj | 14 ++++++++++++ MinimalCloudlessAPI.http | 6 +++++ Program.cs | 7 ++++++ Properties/launchSettings.json | 41 ++++++++++++++++++++++++++++++++++ appsettings.Development.json | 8 +++++++ appsettings.json | 9 ++++++++ 7 files changed, 89 insertions(+) create mode 100644 MinimalCloudlessAPI.csproj create mode 100644 MinimalCloudlessAPI.http create mode 100644 Program.cs create mode 100644 Properties/launchSettings.json create mode 100644 appsettings.Development.json create mode 100644 appsettings.json diff --git a/.gitignore b/.gitignore index 8c2b884..4ba8af7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # ---> VisualStudioCode +.vscode/ .vscode/* !.vscode/settings.json !.vscode/tasks.json @@ -12,3 +13,6 @@ # Built Visual Studio Code Extensions *.vsix +# Bin and obj folders +bin/ +obj/ diff --git a/MinimalCloudlessAPI.csproj b/MinimalCloudlessAPI.csproj new file mode 100644 index 0000000..50af912 --- /dev/null +++ b/MinimalCloudlessAPI.csproj @@ -0,0 +1,14 @@ + + + + net8.0 + enable + enable + + + + + + + + diff --git a/MinimalCloudlessAPI.http b/MinimalCloudlessAPI.http new file mode 100644 index 0000000..0ed274a --- /dev/null +++ b/MinimalCloudlessAPI.http @@ -0,0 +1,6 @@ +@MinimalCloudlessAPI_HostAddress = http://localhost:5156 + +GET {{MinimalCloudlessAPI_HostAddress}}/ +Accept: application/json + +### diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..0027d3f --- /dev/null +++ b/Program.cs @@ -0,0 +1,7 @@ +var builder = WebApplication.CreateBuilder(args); + +var app = builder.Build(); + +app.MapGet("/", () => "Hello World!"); + +app.Run(); \ No newline at end of file diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..2fe657f --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:12485", + "sslPort": 44336 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:5156", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7221;http://localhost:5156", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/appsettings.Development.json b/appsettings.Development.json new file mode 100644 index 0000000..ff66ba6 --- /dev/null +++ b/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/appsettings.json b/appsettings.json new file mode 100644 index 0000000..4d56694 --- /dev/null +++ b/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +}