Skip to content

An example of an Angular2 application using ASP.NET Core and SignalR with XPlatform functionality

Notifications You must be signed in to change notification settings

kvgros/ASPNET-Core-Angular2-SignalR-Typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular 2 // ASP.NET Core // SignalR 3

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.

Social

Follow @FabianGosebrink<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Code

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.

building and using process

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 web
to start the ASP.NET Server or just press the Play-Button in Visual Studio.

This is the output after starting the dnx web server alt text

After this you can browse to the site alt text

With

gulp
you can list all tasks

alt text

alt text

Mobile alt text

Win 8.1 alt text

Desktop alt text

About

An example of an Angular2 application using ASP.NET Core and SignalR with XPlatform functionality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 94.5%
  • JavaScript 1.9%
  • TypeScript 1.6%
  • CSS 1.1%
  • HTML 0.9%