Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spa Services running only react pages ? #56976

Open
1 task done
itsmegopi opened this issue Jul 24, 2024 · 0 comments
Open
1 task done

Spa Services running only react pages ? #56976

itsmegopi opened this issue Jul 24, 2024 · 0 comments
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Comments

@itsmegopi
Copy link

itsmegopi commented Jul 24, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

We have a web application which runs on .NET 8 (recently we migrated from 5 to 8).
Now the team is planning to build new screens in ReactTS and merge these screens with the existing .NET 8 web application. So, it won't impact on the current customers. We also have a future plan to migrate the existing .NET web screens to React TS in phase wise manner

We are doing a POC with .NET Web APP and ReactTS sample apps we tried different articles and approaches to run .NET application and ReactTS application on the Same domain and port number.
Example .NET 8 web app is running on https://localhost:44341 and trying to run ReactTS also on same port and they both reside in same solution.

My solution look like
image

Do we have any documentation for this?

We are using

Startup we added like
app.UseSpa(spa => { spa.Options.SourcePath = "ClientApp"; spa.UseReactDevelopmentServer("start"); });

We are using " Microsoft.AspNetCore.SpaServices.Extensions " package.

Expected Behavior

We trying to run .NET 8 Web APP and ReactTS on same domain and port simply we are mixing .NET 8 and ReactTS so few screens will run on ReactTS and few screesn will run on .NET 8.

Our POC here

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

8

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

No branches or pull requests

1 participant