From 1f61b2afecb32b5d75268642a49ce9556f505796 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 22 Mar 2024 15:47:29 +0000 Subject: Inital commit of dotnet new --- .gitignore | 3 +++ Program.cs | 6 ++++++ Properties/launchSettings.json | 38 ++++++++++++++++++++++++++++++++++++++ appsettings.json | 12 ++++++++++++ download.csproj | 9 +++++++++ 5 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 Program.cs create mode 100644 Properties/launchSettings.json create mode 100644 appsettings.json create mode 100644 download.csproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58b550e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +obj/ +bin/ +appsettings.Development.json diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..bc8438c --- /dev/null +++ b/Program.cs @@ -0,0 +1,6 @@ +var builder = WebApplication.CreateBuilder(args); +var app = builder.Build(); + +app.MapGet("/", () => "Hello World!"); + +app.Run(); diff --git a/Properties/launchSettings.json b/Properties/launchSettings.json new file mode 100644 index 0000000..f34c90b --- /dev/null +++ b/Properties/launchSettings.json @@ -0,0 +1,38 @@ +{ + "$schema": "http://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:5356", + "sslPort": 44328 + } + }, + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5006", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:7234;http://localhost:5006", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/appsettings.json b/appsettings.json new file mode 100644 index 0000000..ad60b35 --- /dev/null +++ b/appsettings.json @@ -0,0 +1,12 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "ConnectionStrings": { + "download": "Host=db_host;Database=postgres;Username=db_unsername;Password=db_password;" + }, + "AllowedHosts": "*" +} diff --git a/download.csproj b/download.csproj new file mode 100644 index 0000000..13d8127 --- /dev/null +++ b/download.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + -- cgit v1.2.3