An Angular 2 application with ASP.NET 5
The application is built on rc1 of ASP.NET 5, refer to http://docs.asp.net to install.
-
Fork and clone the site
-
Run
npm install -
Run
dnu restoreto restore the .NET dependencies -
Open a terminal window and execute
npm run tsc, this starts the TypeScript compiler -
Open a second terminal window and execute
npm start. This command runs thegulp buildtask, then starts nodemon fordnx web. Thenodemonprocess will watch for any changes to the C# code and/or JavaScript files (transpiled fromtsc) and restart then kestrel server.
To open in VS you need to open using the git connector.
Then open the project.json file. Be sure to have the ASPNET 5 file/project type selected.
a Before Build step to have the gulp tasks run and build/compile the typescript and angular 2 project portions if you are just going to F5.
*** note that there is bug in the VS tooling for restoring the @reactivex/rxjs npm package use the command line tool and npm install to get the npm packages restored


