With this repository we can create a X-Platform / Cross Platform Application running with bower, npm, ASP.NET Core, SignalR 3 and Angular 2 with Typescript.
Follow @FabianGosebrink<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Warning: I am working with Angular 2 in RC state, ASP.NET Core which is also an release candidate here because of SignalR (I will watch out to update as soon as there is something stable) and SignalR 3 ...but it works. Enjoy :-)
Just clone this repo and run
npm install
and
bower install
(for signalR)
Then
npm start
gets you going.
Browse to
http://localhost:8080
To see the page then.
If you want to run this solutions out of Visual Studio make sure you ran the gulp task
gulp build:web:dev
before. It will build the application and inject all files into index.html in wwwroot.
Make sure the "AspNetCoreAngular2"-Project in Visual Studio is you Startup-Project by right-clicking it and "Set as Startup Project".
If you want to get production builds you can type
gulp build:web:prod
to build the production-ready build or type
gulp build:all
to get the .dist-folder filled with all the cross-platform builds.
After this you can type
dnx webto start the ASP.NET Server or just press the Play-Button in Visual Studio.
This is the output after starting the dnx web server
After this you can browse to the site
With
gulpyou can list all tasks