Skip to content

Commit

Permalink
Preparing UdapEd mover out of udap-dotnet repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephEShook committed Feb 24, 2024
0 parents commit 616b562
Show file tree
Hide file tree
Showing 193 changed files with 15,270 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# directories
**/bin/
**/obj/
**/out/

# files
Dockerfile*
**/*.trx
**/*.md
**/*.ps1
**/*.cmd
**/*.sh
7 changes: 7 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.gcloudignore
.git
.gitignore
bin\**
obj\**
.vs\**
launchSettings.json
39 changes: 39 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "develop" ]

jobs:
build:

runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install .NET Maui
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore Udap.sln
- name: Generate PKI
run: dotnet test -c Release _tests/Udap.PKI.Generator/Udap.PKI.Generator.csproj
- name: Build
run: dotnet build -c Release Udap-Maui.sln
- name: Test Udap.Common.Tests
run: dotnet test -c Release _tests/Udap.Common.Tests/Udap.Common.Tests.csproj --no-build --verbosity normal
- name: Test UdapMetadata.Tests
run: dotnet test -c Release _tests/UdapMetadata.Tests/UdapMetadata.Tests.csproj --no-build --verbosity normal
- name: Test UdapServer.Tests
run: dotnet test -c Release _tests/UdapServer.Tests/UdapServer.Tests.csproj --no-build --verbosity normal

42 changes: 42 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
# branches: [ "main" ]
branches-ignore: ["develop"]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: windows-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install .NET Maui
run: dotnet workload install maui
- name: Restore dependencies
run: dotnet restore Udap.sln
- name: Generate PKI
run: dotnet test -c Release _tests/Udap.PKI.Generator/Udap.PKI.Generator.csproj
- name: Build
run: dotnet build -c Release Udap-Maui.sln
- name: Test Udap.Common.Tests
run: dotnet test -c Release _tests/Udap.Common.Tests/Udap.Common.Tests.csproj --no-build --verbosity normal
- name: Test UdapMetadata.Tests
run: dotnet test -c Release _tests/UdapMetadata.Tests/UdapMetadata.Tests.csproj --no-build --verbosity normal
- name: Test UdapServer.Tests
run: dotnet test -c Release _tests/UdapServer.Tests/UdapServer.Tests.csproj --no-build --verbosity normal

224 changes: 224 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results



[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
.vs/
x86/
x64/
*.gz

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*


build.json

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
packages/

# node modules
node_modules/
typings/

# generated js and js.map within App
Web/App/**/*.js
Web/App/**/*.map

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# CLI compiled output
dist/
tmp/
out-tsc/

# Coveragee results
coverage/

# Generated views
Web/Views/Shared/_Layout.cshtml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store

!/tools/*/bin
!/tools/*/bin/*
!/tools/*/*.exe
!/tools/*/*.pdb
!/sql/*.xml
!/sql/*/*.xml
Web/npm-lint.ps1
Web/npm-test.ps1
Web/coverage/
*.pdf
Web/.vscode/settings.json
Web/code-review.bat
log.txt
Web/npm-test-once.ps1
Web/npm-test-once-all.ps1

*.DotSettings

MessagingApi/web.config

Web/web.config
*.db-shm
*.db-wal
*.cer
*.crl
*.crt
*.p12
examples/Udap.Idp/keys/*.json
_tests/Udap.PKI.Generator/Resources/ProjectDirectory.txt
NuGet.Config
*.db
.tye/process_store

_tests/UdapMetadata.Tests/DemoFileSystemService/.search-index-cache.json
/_tests/Udap.PKI.Generator/TefcaRce.cs
_tests/Udap.PKI.Generator/certstores/TEFCA_RCE
examples/clients/UdapEd/Client/wwwroot/temp/MudBlazor.min.js
examples/clients/UdapEd/Client/wwwroot/temp/MudBlazor.min.css
.tye/docker_store
40 changes: 40 additions & 0 deletions Client/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#region (c) 2023 Joseph Shook. All rights reserved.
// /*
// Authors:
// Joseph Shook [email protected]
//
// See LICENSE in the project root for license information.
// */
#endregion

using Blazored.LocalStorage;
using BQuery;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using MudBlazor.Services;
using UdapEd.Client.Services;
using UdapEd.Shared;
using UdapEd.Shared.Services;


var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");


builder.Services.AddScoped(sp => new HttpClient
{
BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
});

builder.Services.AddMudServices();
builder.Services.AddBlazoredLocalStorage();

builder.Services.AddSingleton<UdapClientState>(); //Singleton in Blazor wasm and Scoped in Blazor Server
builder.Services.AddScoped<IRegisterService, RegisterService>();
builder.Services.AddScoped<IDiscoveryService, DiscoveryService>();
builder.Services.AddScoped<IAccessService, AccessService>();
builder.Services.AddScoped<IFhirService, FhirService>();
builder.Services.AddScoped<IInfrastructure, Infrastructure>();

await builder.Build().UseBQuery().RunAsync();
12 changes: 12 additions & 0 deletions Client/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"profiles": {
"UdapEd.Client": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:64303;http://localhost:64304"
}
}
}
Loading

0 comments on commit 616b562

Please sign in to comment.