ASP.NET Angular 8 project generated with Angular CLI.
Browse source code, view live demo angular-spa.web-templates.io and install with dotnet-new:
$ dotnet tool install --global x
$ x new angular-spa-netfx ProjectName
Run the ASP.NET Server App with F5
and watch for changes and in a new terminal window run the dev
Gulp task in Task Runner Explorer to start a dev watch
aot build for compiling client assets.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run webpack-build
Gulp task to build the project. The build artifacts will be stored in the wwwroot/
directory. Use npm run webpack-build-prod
for a production build.
Run publish
Gulp task to generate a client and server production build the project. Then Right click your Host project and click Publish
menu item
to use MS Deploy to deploy your App to IIS.
Run tests-run
Gulp task to execute the unit tests via Karma.
Run tests-e2e
Gulp task to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.