Skip to content

Commit

Permalink
edits
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Sep 17, 2023
1 parent c8ce83e commit 7c1172a
Show file tree
Hide file tree
Showing 66 changed files with 1,274 additions and 3,138 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"hotchocolate.fusion.commandline": {
"version": "13.6.0-preview.17",
"commands": [
"fusion"
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,4 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml
.DS_Store

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<values>
<value name="mac.address" type="string">2676c7cec146f049c939b8a61d2c705e6dd3e149e148d0e6018e234bbfa53d98</value>
<value name="mac.info.provider.version" type="string">1</value>
</values>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<values>
<value name="StillAlive" type="qword">133394537151958420</value>
</values>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<values>
<value name="MachineId" type="string">{2676C7CE-C146-F049-C939-B8A61D2C705E}</value>
</values>
24 changes: 24 additions & 0 deletions Gateway/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "shell",
"args": [
"build",
// Ask dotnet build to generate full paths for file names.
"/property:GenerateFullPaths=true",
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
"/consoleloggerparameters:NoSummary"
],
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": "$msCompile"
}
]
}
16 changes: 16 additions & 0 deletions Gateway/Gateway.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BananaCakePop.Services" Version="1.0.0" />
<PackageReference Include="HotChocolate.AspNetCore" Version="13.6.0-preview.16" />
<PackageReference Include="HotChocolate.AspNetCore.CommandLine" Version="13.6.0-preview.16" />
<PackageReference Include="HotChocolate.Fusion" Version="13.6.0-preview.16" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions Gateway/Gateway.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Gateway", "Gateway.csproj", "{06E606DC-A840-4F9F-BCD2-11998D575C19}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{06E606DC-A840-4F9F-BCD2-11998D575C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{06E606DC-A840-4F9F-BCD2-11998D575C19}.Debug|Any CPU.Build.0 = Debug|Any CPU
{06E606DC-A840-4F9F-BCD2-11998D575C19}.Release|Any CPU.ActiveCfg = Release|Any CPU
{06E606DC-A840-4F9F-BCD2-11998D575C19}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9D15BFC4-84B8-4A4E-8DB0-0FC1A10A147E}
EndGlobalSection
EndGlobal
15 changes: 15 additions & 0 deletions Gateway/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddHttpClient("Fusion");

builder.Services
.AddFusionGatewayServer()
.ConfigureFromFile("./gateway.fgp")
.CoreBuilder
.ModifyRequestOptions(o => o.IncludeExceptionDetails = true);

var app = builder.Build();

app.MapGraphQL();

app.RunWithGraphQLCommands(args);
37 changes: 37 additions & 0 deletions Gateway/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5098",
"sslPort": 7098
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5098",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7098;http://localhost:5098",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
8 changes: 8 additions & 0 deletions Gateway/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
9 changes: 9 additions & 0 deletions Gateway/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
Loading

0 comments on commit 7c1172a

Please sign in to comment.