rush into tally social...…getting chatty with angularjs, asp.net and firebase

10
INTO TALLY SOCIAL …getting chatty with AngularJS, ASP.NET and Firebase Tyler Lesperance - @tylerama 9 www.iamtyler.ca

Upload: tyler-lesperance

Post on 18-Jun-2015

214 views

Category:

Presentations & Public Speaking


0 download

DESCRIPTION

Presentation at the 2014 Tallahassee Code Camp about creating a real-time chat room with AngularJS, ASP.NET, and Firebase. Full demo: http://tallysocial.azurewebsites.net

TRANSCRIPT

Page 1: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

INTO TALLY SOCIAL…getting chatty with AngularJS, ASP.NET and

Firebase

Tyler Lesperance - @tylerama9 – www.iamtyler.ca

Page 2: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

AngularJS SPA

Connects to ASP.NET Web API

Uses Firebase for real-time chat

http://tallysocial.azurewebsites.net

QUICK DEMOQuick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources

Page 3: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

Simple app structure

Sets a user after log in or sign up

$resource plays very well with ASP.NET web APIPromises are extremely helpful in Angular, let’s use them( time to code )

AngularJSQuick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources

Page 4: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

From Visual Studio new MVC project

Going to use classes for our data models and controllers for our logic

Receive HTTP requests from Angular, routed to our controllers

Controllers return do the ditty then return HTTP response

ASP.NET WEB API

*disclaimer: I am not an ASP developer

*Quick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources

Page 5: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

Firebase is a DB service with a flat structure

Provides real-time streams

No back-end coding required

Freaking awesomely simple API

Built-in security and authentication

A good friend to Angular with AngularFire

CHAT WITH FIREBASE

Quick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources

Page 6: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

That’s it. We now have an AngularJS application that connects to ASP.NET web API and has a pretty cool but simple chat room (actually two)

AND WE’RE DONE

*no we’re not

*Quick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources

Page 7: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

Add better security and authentication

Chat room? That’s it? We can do better

I highly recommend getting into AngularJS and harnessing the power of JavaScript

More importantly, decide what’s best for your project. Don’t use ASP.NET AND Firebase if you don’t have to.

Write better ASP.NET than I do, please

NEXT STEPSQuick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Resources

Next Steps

Page 8: Rush Into Tally Social...…getting chatty with AngularJS, ASP.NET and Firebase

http://www.toddmot.to

http://www.angularjs.org

http://www.johnpapa.net

http://www.firebase.comhttp://www.thinkster.io

DEMO: http://tallysocial.azurewebsites.net

$RESOURCESQuick Demo

AngularJS

ASP.NET Web APIFirebase

And We’re Done

Next Steps

Resources