Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 688 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 688 Bytes

AngularWithDocker

This repo demonstrates the steps to integrate an angular in an ASP.NET host running in docker. When running in development, the flow is as follows:

flowchart LR
  Browser -- "Connects to" -->AngularDevServer
  subgraph Host
    AngularDevServer["Angular Dev Server"]
  end
  AngularDevServer -- "Proxies requests to backend" --> Container
  subgraph Container
    AspNetCoreProcess["Server API"]
  end
Loading
  • Angular developer proxy serves the app and runs on the host machine.
  • Backend API runs inside the container and receives proxied requests from the app.

The target inside ClientApp/proxy.conf.js needs to be updated to target the container URL.