-
Set env variable ASPNETCORE_Environment to Development:
- Windows (non powershell):
SET ASPNETCORE_Environment=Development
- Mac & Linux:
export ASPNETCORE_Environment=Development
- Windows (non powershell):
-
Copy
appsettings.json
toappsettings.Development.json
and replace missing keys.
Use AngularCliServer instead ProxyToSpa in Startup.cs.
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
//spa.UseProxyToSpaDevelopmentServer("http://localhost:4200");
}
Execute dotnet run
inside clicky-clicky directory.
Use ProxyToSpa instead of AngularCliServer in Startup.cs.
if (env.IsDevelopment())
{
//spa.UseAngularCliServer(npmScript: "start");
spa.UseProxyToSpaDevelopmentServer("http://localhost:4200");
}
- Execute
dotnet run
inside clicky-clicky directory. - Execute
npm start
inside ClientApp.