From 92e5978cf1cf54ff587ee93dcbcb5f5dc05ea55c Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 16:44:35 +0000 Subject: Deleted main console program, and moved server to main --- Server/.vscode/launch.json | 46 ---------------------------------------- Server/.vscode/tasks.json | 15 ------------- Server/Program.cs | 21 ------------------ Server/Server.csproj | 20 ------------------ Server/Startup.cs | 48 ------------------------------------------ Server/wwwroot/css/main.css | 0 Server/wwwroot/index.html | 18 ---------------- Server/wwwroot/scripts/main.ts | 8 ------- Server/wwwroot/tsconfig.json | 8 ------- 9 files changed, 184 deletions(-) delete mode 100644 Server/.vscode/launch.json delete mode 100644 Server/.vscode/tasks.json delete mode 100644 Server/Program.cs delete mode 100644 Server/Server.csproj delete mode 100644 Server/Startup.cs delete mode 100644 Server/wwwroot/css/main.css delete mode 100644 Server/wwwroot/index.html delete mode 100644 Server/wwwroot/scripts/main.ts delete mode 100644 Server/wwwroot/tsconfig.json (limited to 'Server') diff --git a/Server/.vscode/launch.json b/Server/.vscode/launch.json deleted file mode 100644 index 7a4e712..0000000 --- a/Server/.vscode/launch.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - // Use IntelliSense to find out which attributes exist for C# debugging - // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Launch (web)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/bin/Debug/netcoreapp2.1/Server.dll", - "args": [], - "cwd": "${workspaceFolder}", - "stopAtEntry": false, - "internalConsoleOptions": "openOnSessionStart", - "launchBrowser": { - "enabled": true, - "args": "${auto-detect-url}", - "windows": { - "command": "cmd.exe", - "args": "/C start ${auto-detect-url}" - }, - "osx": { - "command": "open" - }, - "linux": { - "command": "xdg-open" - } - }, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "sourceFileMap": { - "/Views": "${workspaceFolder}/Views" - } - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach", - "processId": "${command:pickProcess}" - } - ,] -} \ No newline at end of file diff --git a/Server/.vscode/tasks.json b/Server/.vscode/tasks.json deleted file mode 100644 index 93c8951..0000000 --- a/Server/.vscode/tasks.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/Server.csproj" - ], - "problemMatcher": "$msCompile" - } - ] -} \ No newline at end of file diff --git a/Server/Program.cs b/Server/Program.cs deleted file mode 100644 index 9db50bb..0000000 --- a/Server/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore; -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; - -namespace Server { - public class Program { - public static void Main(string[] args) { - CreateWebHostBuilder(args).Build().Run(); - } - - public static IWebHostBuilder CreateWebHostBuilder(string[] args) => - WebHost.CreateDefaultBuilder(args) - .UseStartup(); - } -} diff --git a/Server/Server.csproj b/Server/Server.csproj deleted file mode 100644 index fb94fca..0000000 --- a/Server/Server.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - - netcoreapp2.1 - - - - - - - - - - - - - - - - diff --git a/Server/Startup.cs b/Server/Startup.cs deleted file mode 100644 index 93bae2d..0000000 --- a/Server/Startup.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; - -using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata; - -using Classes; -using Database; -using Aggregator.Parser; - -namespace Server { - public class Startup { - public Startup(IConfiguration configuration) { - Configuration = configuration; - } - - public IConfiguration Configuration { get; } - - public void ConfigureServices(IServiceCollection services) { - services.Configure(options => { - options.CheckConsentNeeded = context => true; - options.MinimumSameSitePolicy = SameSiteMode.None; - }); - - services.AddDbContext(options => { - options.UseMySQL(Configuration.GetConnectionString("connectionString")); - }); - } - - public void Configure(IApplicationBuilder app, IHostingEnvironment env) { - if (env.IsDevelopment()) { - app.UseDeveloperExceptionPage(); - } - else { - app.UseExceptionHandler("/Error"); - app.UseHsts(); - } - - app.UseDefaultFiles(); - app.UseStaticFiles(); - } - } -} diff --git a/Server/wwwroot/css/main.css b/Server/wwwroot/css/main.css deleted file mode 100644 index e69de29..0000000 diff --git a/Server/wwwroot/index.html b/Server/wwwroot/index.html deleted file mode 100644 index cd392d4..0000000 --- a/Server/wwwroot/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - Page Title - - - - - - -
-
- - - \ No newline at end of file diff --git a/Server/wwwroot/scripts/main.ts b/Server/wwwroot/scripts/main.ts deleted file mode 100644 index 77a80d3..0000000 --- a/Server/wwwroot/scripts/main.ts +++ /dev/null @@ -1,8 +0,0 @@ -var root = document.getElementsByClassName('app'); - -class Article { - Title: HTMLElement; - Description: string; - ArticleLink: string; - Image: HTMLElement; -} \ No newline at end of file diff --git a/Server/wwwroot/tsconfig.json b/Server/wwwroot/tsconfig.json deleted file mode 100644 index 89d01c4..0000000 --- a/Server/wwwroot/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "esnext", - "sourceMap": true, - "outDir": "js/" - } -} \ No newline at end of file -- cgit v1.2.3-13-gbd6f