|
2 | 2 | title: React Templates |
3 | 3 | --- |
4 | 4 |
|
| 5 | + |
| 6 | +## Angular SPA |
| 7 | + |
| 8 | +### Development |
| 9 | + |
| 10 | +```mermaid |
| 11 | +--- |
| 12 | +config: |
| 13 | + layout: dagre |
| 14 | + look: neo |
| 15 | + theme: redux |
| 16 | + themeVariables: |
| 17 | + edgeLabelBackground: '#ffffff' |
| 18 | +--- |
| 19 | +flowchart LR |
| 20 | + subgraph DEVELOPMENT["DEVELOPMENT"] |
| 21 | + direction LR |
| 22 | + DevServer[(".NET PROJECT<br>(localhost:5001)")] |
| 23 | + Identity("ASP.NET Core Identity<br>Razor Pages") |
| 24 | + Endpoints(".NET Endpoint Routing") |
| 25 | + DevNext[/"Vite React App<br>(localhost:5173)<br>Runs concurrently"/] |
| 26 | + end |
| 27 | + DevServer -- /Identity/* --> Identity |
| 28 | + DevServer -- /* --> Endpoints |
| 29 | + DevServer -- /* Fallback<br>(Proxied) --> DevNext |
| 30 | + DevServer -- Vite HMR<br>(Websocket) --> DevNext |
| 31 | +
|
| 32 | + Identity:::static |
| 33 | + Endpoints:::static |
| 34 | + DevServer:::netHost |
| 35 | + DevNext:::nextApp |
| 36 | + classDef netHost fill:#dbeafe,stroke:#1e3a8a,stroke-width:2px,color:#1e3a8a |
| 37 | + classDef nextApp fill:#f3e8ff,stroke:#6b21a8,stroke-width:2px,color:#6b21a8 |
| 38 | + classDef static fill:#ecfdf5,stroke:#047857,stroke-width:2px |
| 39 | +``` |
| 40 | + |
| 41 | +### Production |
| 42 | + |
| 43 | +```mermaid |
| 44 | +--- |
| 45 | +config: |
| 46 | + layout: dagre |
| 47 | + look: neo |
| 48 | + theme: redux |
| 49 | + themeVariables: |
| 50 | + edgeLabelBackground: '#ffffff' |
| 51 | +--- |
| 52 | +flowchart LR |
| 53 | + subgraph PRODUCTION["PRODUCTION"] |
| 54 | + direction LR |
| 55 | + DevServer[(".NET PROJECT<br>(localhost:5001)")] |
| 56 | + Identity("ASP.NET Core Identity<br>Razor Pages") |
| 57 | + Endpoints(".NET Endpoint Routing") |
| 58 | + StaticFiles[/"/wwwroot<br>Serves static files<br>(HTML, CSS, JS)"/] |
| 59 | + end |
| 60 | + DevServer -- /Identity/* --> Identity |
| 61 | + DevServer -- /* --> Endpoints |
| 62 | + DevServer <-- /* Static Files --> StaticFiles |
| 63 | +
|
| 64 | + DevServer:::netHost |
| 65 | + Identity:::static |
| 66 | + Endpoints:::static |
| 67 | + StaticFiles:::static |
| 68 | +
|
| 69 | + classDef netHost fill:#dbeafe,stroke:#1e3a8a,stroke-width:2px,color:#1e3a8a |
| 70 | + classDef nextApp fill:#f3e8ff,stroke:#6b21a8,stroke-width:2px,color:#6b21a8 |
| 71 | + classDef static fill:#ecfdf5,stroke:#047857,stroke-width:2px |
| 72 | +``` |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
5 | 77 | ## React Static |
6 | 78 |
|
7 | 79 | ### Development |
|
0 commit comments