Skip to content

docs: Add server project basic docs - #21111

Merged
jeromelaban merged 4 commits into
masterfrom
dev/jela/server-project-docs
Jul 24, 2025
Merged

jeromelaban merged 4 commits into
masterfrom
dev/jela/server-project-docs

Conversation

@jeromelaban

Copy link
Copy Markdown
Member

GitHub Issue: closes #21090

Copilot AI review requested due to automatic review settings July 22, 2025 17:20
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Jul 22, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for the ASP.NET Core server project feature in Uno Platform templates. The documentation explains how to use the server project option that allows hosting both API servers and WebAssembly applications together.

  • Creates comprehensive guide for using the server project across different IDEs (Visual Studio, VS Code, Rider)
  • Adds troubleshooting section for HTTPS and mixed content issues
  • Integrates server project documentation into existing WebAssembly troubleshooting guide

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.

File Description
doc/articles/toc.yml Adds table of contents entry for the new server project guide
doc/articles/guides/using-the-server-project.md Creates new comprehensive documentation for server project usage and configuration
doc/articles/common-issues-wasm.md Adds mixed content troubleshooting section with cross-reference to server project docs

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 171501 has failed on Uno.UI - docs.

@DevTKSS

DevTKSS commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

if including the WebAssembly Target Platform is important, maybe we should add this information?
and would you have something against some visual content? :)
image
maybe showing where to find it in the templates and... dont know, is there something related to the Server to know about PWA? otherwhise, maybe a link to the PWA docs (I think I seens some in the past 🤔 ) and that this is a consideration maybe? dont know if it is. Or do we have known issues so we should consider not to combine those? I had refit http files in my new project while choosen kiota in the wizard, thats why I am asking. Not that this intermixing would then confuse the user 👍 here, some wizard image for this option maybe
image

@jeromelaban

Copy link
Copy Markdown
Member Author

maybe showing where to find it in the templates and... dont know, is there something related to the Server to know about PWA? otherwhise, maybe a link to the PWA docs (I think I seens some in the past 🤔 ) and that this is a consideration maybe? dont know if it is. Or do we have known issues so we should consider not to combine those? I had refit http files in my new project while choosen kiota in the wizard, thats why I am asking. Not that this intermixing would then confuse the user 👍 here, some wizard image for this option maybe

Thanks. There's no need to explain how to create a project, we're detailing this in the getting started documentation.

@DevTKSS

DevTKSS commented Jul 22, 2025 •

Copy link
Copy Markdown
Contributor

@jeromelaban 👍 seperate PR then I think :)
hm but for the intro of this page this is should maybe tell about if this is assuming we do include specific targets or if this is independant of them and as the Wizard does file the Server Option below "Features" the intro sentence maybe should be more like... 🤔
"
As part of the uno platform templates, you can opt in to include a ASP.NET Core server project to your solution to allow the hosting of both an API server as well as a WebAssembly app.
"
it reads a bit... in german you would say "holprig" 😅

@DevTKSS

DevTKSS commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

will try if this works 👍

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 171510 has failed on Uno.UI - docs.

@DevTKSS

DevTKSS commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

@jeromelaban sorry, no does not work out with the https 👎

@DevTKSS

DevTKSS commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

attached repro etc to the linked issue

@DevTKSS

DevTKSS commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

@jeromelaban missing this asp net core https trust certificate setting here to be linked or introduced to execute:
https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-9.0&tabs=visual-studio%2Clinux-sles#trust-the-aspnet-core-https-development-certificate
not sure where you would add it (server or app?) but I think this might be important to do?

@jeromelaban

Copy link
Copy Markdown
Member Author

@jeromelaban missing this asp net core https trust certificate setting here to be linked or introduced to execute:
https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-9.0&tabs=visual-studio%2Clinux-sles#trust-the-aspnet-core-https-development-certificate
not sure where you would add it (server or app?) but I think this might be important to do?

It's generally done by VS automatically, but for other platforms it may be needed, thanks.

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 171635 has failed on Uno.UI - docs.

@DevTKSS

DevTKSS commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

@jeromelaban not sure if you did notice in the video, but if I did read your guide correctly, you do tell that the https additional url has to be put into our wasm client app? Maybe you did meant the server? because somehow, as soon as I did that, it had that socked error again 🤔

@jeromelaban

jeromelaban commented Jul 23, 2025 •

Copy link
Copy Markdown
Member Author

@jeromelaban not sure if you did notice in the video, but if I did read your guide correctly, you do tell that the https additional url has to be put into our wasm client app? Maybe you did meant the server? because somehow, as soon as I did that, it had that socked error again 🤔

The section named Enabling HTTPS for the app project is about only the app project, not the server project. If you're running the server as startup project, https is already selected by default by the VS debugger. If the server project is running not for you in https, then swap the urls in applicationUrls in launchSettings.json to place https first. Then if you get the mixed content error, the rest of the doc of this PR is applicable again.

@unodevops

Copy link
Copy Markdown
Contributor

@DevTKSS

DevTKSS commented Jul 23, 2025

Copy link
Copy Markdown
Contributor

@jeromelaban I am trying to see, where I am making the mistake, because I would think I did what it told and were curios about that addition on the app != server 🤷 and our templated app url has just 1 member and our server 2 🤔

@jeromelaban
jeromelaban merged commit 4814c55 into master Jul 24, 2025
@jeromelaban
jeromelaban deleted the dev/jela/server-project-docs branch July 24, 2025 13:06
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WASM][Server] Using HTTPS fails on both the server side and app side

5 participants