Category: pet projects
- 
			
			
Aspire Resource for Aspire–part 1–idea
I have published many Aspire Extensions ( see https://msprogrammer.serviciipeweb.ro/category/aspire/ – ) However, to make an AUTOMATED demo, I need the token url of the dashboard and the url itself. How can I obtain those and pass to the demo / tests ? So here are the specs As a Aspire Resource developer I wanted to…
 - 
			
			
WebApi SDK generator–part 2–naive implementation
The decision to implement were: https://github.com/OpenAPITools/openapi-generator – because has multiple language implementations has a WebAPI docker Implement one SDK generator per WebAPI – it is simpler to generate commands for each one , rather to have multiple on the same ASPIRE resource Can wait for 1 WebAPI to become available, rather for all This said,…
 - 
			
			
WebApi SDK generator–part 1–idea
In those days, every Web Project has 2 parts – an API and an SPA . If we document the SPA for the users, the API is directed more to programmers- and it will be helpfull to have already generated for them SDK for the language of their choice. There are many generators in the…
 - 
			
			
Dotnet Global Tools Extension for ASPIRE–part 2–code and usage
First thing – – usage must be simple . So this is something that can be reproduces easy on each ASPIRE project : builder.AddDotnetGlobalTools(“dotnet-ef”, “dotnet-depends”); I cannot imagine simpler than this – and , of course, you can add many more other dotnet tools – see https://www.nuget.org/packages?q=&includeComputedFrameworks=true&packagetype=dotnettool&prerel=true&sortby=relevance What happens: Now a Aspire resource will be…
 - 
			
			
BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–code
BlazorExtensionsAspire solves the problem of automatically injecting the URL of WebAPI into Blazor WebAssembly . The code for obtaining writes into appsettings.json of BlazorWebAssembly To use it add this to a Aspire AppHost project and then add this to a BlazorWebAssembly project and then inject Do not forget to add CORS to webAPI !
 - 
			
			
BlazorExtensionsAspire – integrate BlazorWebAssembly with WebAPI via Aspire–idea
Any WebAPI application needs an UI – and Blazor is a choice nowadays ( along other SPA , like Angular, React, Svelte … ) For integrating in ASPIRE ,there is a no simple task : Blazor should know the WebAPI url and use it to gather data. But the WebAPI URL could change – so…
 - 
			
			
TestExtensionsAspire- part 2- execution
Now the code mans to create commands about running dotnet <test or run> in the current folder of the csproj test project. Things that needed to be solved: 1. Test Project as NuGet Package The main project (.csproj) , that will be referenced as a NuGet dependency, it’s not an Aspire project, so it doesn’t…
 - 
			
			
TestExtensionsAspire- part 1 – idea
I know that Aspire could be used to perform integration test. And this can be achieved by having a test project that references Aspire – see https://learn.microsoft.com/en-us/dotnet/aspire/testing/write-your-first-test?pivots=xunit . However, how about allowing your test project ( even unit test project ) to run under Aspire Host ? Of course, Aspire will reference the test –…
 - 
			
			
SqlExtensionsAspire–part 1–idea
Aspire is a popular orchestrator for managing projects and Docker containers in the .NET ecosystem. While it’s primarily known for .NET, Aspire also supports other technologies like Node.js, Python, and more. Since I use SQL Server as my database, I found myself needing a few essential features: Execute pre-defined SQL commands at database creation timeI…
 - 
			
			
AI and upgrading WordPress–part 1
This blog, https://msprogrammer.serviciipeweb.ro/ , was hacked. Every day I see casinos posts – posted by root. Indeed , the wordpress was very old – and stuffed with plugins. I tried to delete the root account from database – but somehow I get hacked over again( and yes, I have changed the WordPress password )\ So…