AspNetCoreAngular2Cli
AspNetCoreAngular2Cli copied to clipboard
Seed project for applications using ASP.NET Core and Angular2 - using Angular CLI tool.
Blog: https://devblog.dymel.pl/2016/10/25/angular2-cli-with-aspnet-core-application-tutorial/
Seed project demonstrating a setup of an application using ASP.NET Core for backend and Angular2 for frontend, using Angular CLI tool to create and manage builds.
To Debug
- Run command prompt, enter /src/Frontend/src directory and execute
npm start. This will start webpack dev server and direct/apicalls to backend application. - Start Backend application from VisualStudio
To build
- Run
npm buildfrom command prompt in /src/Frontend/src directory. This will build the angular application and copy it to wwwroot directory in backend application - Publish Backend application from VisualStudio or use the dotnet cli.