dotnet/AspNetCore.Docs

[SPA] 6.0 docs need a general update

开放

#25,028 创建于 2022年2月15日

 (0 条评论) (0 个反应) (0 位负责人)C# (24,791 个派生)batch import
Help wantedPri2Source - Docs.ms

仓库指标

星标
 (13,093 个星标)
PR 合并指标
 (平均合并 2天 17小时) (30 天内合并 49 个 PR)

描述

The docs point to the "legacy" way of doing things with the old Spa.Extensions library.

We revamped the way this works in 6.0 to leverage the same architecture followed by frontend frameworks to integrate with backends. The docs for angular and react should reflect that and cover the common use cases.

There is content here with details on how this works.

We should cover the following:

  • How it works in development. (Frontend Dev Proxy proxies requests to ASP.NET Core)
  • How it works in production. (Apps are just static files sitting in your wwwroot folder).

The important files on the ClientApp:

Development modes:

  • Launch frontend and backend simultaneously by launching the backend (as you are used to)
  • Launch frontend and backend separately (by launching the frontend manually with npm run start) and avoid having to start the frontend server every time.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

贡献者指南