Angular // Webpack // ASP.NET CORE WebAPI Starter Template
This is a starter template for developing Angular with ASP.NET Core WebAPI Applications using webpack for bundling. It has the webpack dev server included as well as css styles in webpack, hashes for your files, automatic injection into the index.html etc.
Make sure you have the npm Taskrunner installed
This template is an Angular application with an http-service getting values from an ASP.NET CORE WebAPI.
Start by typing
at the level of the "package.json" file and browse to
Option 2 (Frontend and backend running)
Now you can just press "play" inside Visual Studio to get started.
If you change the *.ts-files you need to run the
tsc command manually.
Option 4 (frontend and backend running)
You can type
npm run build:dist and browse to
localhost:5000 to see the page. This will trigger an webpack build and an
dotnet run. Changes will not automatically appear in the browser.