tuoitrexuquang / ASPNET-Core-Angular2-SignalR-Typescript

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

Home Page:http://offering.solutions/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

Offering.solutions

fabian-gosebrink.com

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

http://offering.solutions/


Languages

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