Initial structure.
This commit is contained in:
commit
0a07e2baa6
13 changed files with 197 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
**/bin/
|
||||||
|
**/obj/
|
50
Femsci.Nyanid.sln
Normal file
50
Femsci.Nyanid.sln
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio Version 17
|
||||||
|
VisualStudioVersion = 17.0.31903.59
|
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{59E0F34E-09DA-4489-ACEC-0F8955498EB0}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Femsci.Nyanid.Client", "src\Femsci.Nyanid.Client\Femsci.Nyanid.Client.csproj", "{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Femsci.Nyanid.Lib", "src\Femsci.Nyanid.Lib\Femsci.Nyanid.Lib.csproj", "{BD130F70-96AA-49F5-AE42-A5A2E8619522}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Femsci.Nyanid.Server", "src\Femsci.Nyanid.Server\Femsci.Nyanid.Server.csproj", "{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4}"
|
||||||
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{C49E8935-68F7-4DF6-95B4-22054A54AF7E}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Femsci.Nyanid.Test", "test\Femsci.Nyanid.Test\Femsci.Nyanid.Test.csproj", "{24AFAD70-313B-4BD8-A299-F230D437F41F}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{BD130F70-96AA-49F5-AE42-A5A2E8619522}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{BD130F70-96AA-49F5-AE42-A5A2E8619522}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{BD130F70-96AA-49F5-AE42-A5A2E8619522}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{BD130F70-96AA-49F5-AE42-A5A2E8619522}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{24AFAD70-313B-4BD8-A299-F230D437F41F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{24AFAD70-313B-4BD8-A299-F230D437F41F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{24AFAD70-313B-4BD8-A299-F230D437F41F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{24AFAD70-313B-4BD8-A299-F230D437F41F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(NestedProjects) = preSolution
|
||||||
|
{B295AB35-5BFA-45E5-A9D0-D25A292C2F6E} = {59E0F34E-09DA-4489-ACEC-0F8955498EB0}
|
||||||
|
{BD130F70-96AA-49F5-AE42-A5A2E8619522} = {59E0F34E-09DA-4489-ACEC-0F8955498EB0}
|
||||||
|
{6B86BA58-1A5C-400E-A931-4DAD11D1B0B4} = {59E0F34E-09DA-4489-ACEC-0F8955498EB0}
|
||||||
|
{24AFAD70-313B-4BD8-A299-F230D437F41F} = {C49E8935-68F7-4DF6-95B4-22054A54AF7E}
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
10
src/Femsci.Nyanid.Client/Femsci.Nyanid.Client.csproj
Normal file
10
src/Femsci.Nyanid.Client/Femsci.Nyanid.Client.csproj
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<RootNamespace>Femsci.Nyanid</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
10
src/Femsci.Nyanid.Lib/Femsci.Nyanid.Lib.csproj
Normal file
10
src/Femsci.Nyanid.Lib/Femsci.Nyanid.Lib.csproj
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<RootNamespace>Femsci.Nyanid</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
11
src/Femsci.Nyanid.Lib/Identity/IAgent.cs
Normal file
11
src/Femsci.Nyanid.Lib/Identity/IAgent.cs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Femsci.Nyanid.Identity;
|
||||||
|
|
||||||
|
public interface IAgent
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
12
src/Femsci.Nyanid.Server/Data/IdentityContext.cs
Normal file
12
src/Femsci.Nyanid.Server/Data/IdentityContext.cs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace Femsci.Nyanid.Server.Data;
|
||||||
|
|
||||||
|
public class IdentityContext : DbContext
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
13
src/Femsci.Nyanid.Server/Femsci.Nyanid.Server.csproj
Normal file
13
src/Femsci.Nyanid.Server/Femsci.Nyanid.Server.csproj
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.7" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
9
src/Femsci.Nyanid.Server/Program.cs
Normal file
9
src/Femsci.Nyanid.Server/Program.cs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
using Femsci.Nyanid.Server.Data;
|
||||||
|
|
||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
builder.Services.AddDbContext<IdentityContext>();
|
||||||
|
|
||||||
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.Run();
|
37
src/Femsci.Nyanid.Server/Properties/launchSettings.json
Normal file
37
src/Femsci.Nyanid.Server/Properties/launchSettings.json
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
{
|
||||||
|
"iisSettings": {
|
||||||
|
"windowsAuthentication": false,
|
||||||
|
"anonymousAuthentication": true,
|
||||||
|
"iisExpress": {
|
||||||
|
"applicationUrl": "http://localhost:18329",
|
||||||
|
"sslPort": 44305
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"profiles": {
|
||||||
|
"http": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "http://localhost:5027",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"https": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "https://localhost:7240;http://localhost:5027",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"IIS Express": {
|
||||||
|
"commandName": "IISExpress",
|
||||||
|
"launchBrowser": true,
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
8
src/Femsci.Nyanid.Server/appsettings.Development.json
Normal file
8
src/Femsci.Nyanid.Server/appsettings.Development.json
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
9
src/Femsci.Nyanid.Server/appsettings.json
Normal file
9
src/Femsci.Nyanid.Server/appsettings.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"Logging": {
|
||||||
|
"LogLevel": {
|
||||||
|
"Default": "Information",
|
||||||
|
"Microsoft.AspNetCore": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*"
|
||||||
|
}
|
25
test/Femsci.Nyanid.Test/Femsci.Nyanid.Test.csproj
Normal file
25
test/Femsci.Nyanid.Test/Femsci.Nyanid.Test.csproj
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
<IsTestProject>true</IsTestProject>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
|
||||||
|
<PackageReference Include="xunit" Version="2.4.2" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="coverlet.collector" Version="3.2.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
1
test/Femsci.Nyanid.Test/Usings.cs
Normal file
1
test/Femsci.Nyanid.Test/Usings.cs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
global using Xunit;
|
Loading…
Reference in a new issue