- To install the Single Page Application (SPA) templates, run the following command:
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
-
Create Project with
dotnet
CLIcd ./project-folder-path dotnet new angular
-
Restore Project
dotnet restore npm install
-
Set an environment variable to tell ASP.NET to run in development mode:
- If you’re using PowerShell in Windows, execute
$Env:ASPNETCORE_ENVIRONMENT = "Development"
- If you’re using cmd.exe in Windows, execute
setx ASPNETCORE_ENVIRONMENT "Development"
, and then restart your command prompt to make the change take effect - If you’re using Mac/Linux, execute
export ASPNETCORE_ENVIRONMENT=Development
- If you’re using PowerShell in Windows, execute
-
Run & Open
localhost:5000
dotnet run
webpack --config webpack.config.vendor.js
webpack