Firebase and AngularJS

Post on 18-Nov-2014

2321 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Nobackend alternatives and Firebase as example with AngularJS integration.

Transcript

Firebase  and  AngularJS

29.8.2013  -­‐  PragueJS

Ladislav  Prskavec@abtris

1

HOW

WHAT

WHY

2

3

client server store

Server sideClient side

HTTP

4

client

Server sideClient side

HTTP nobackendsolution

5

• Offline  by  default• Document-­‐based  storage  with  CouchDB:  no  building  database  schemas

• JavaScript  and  JSON  on  every  layer.  Even  the  database  queries  are  JS

• Flexible,  npm-­‐based  plugin  system  in  case  you  need  more  capability

• Send  mulV-­‐part  emails  with  aWachments  from  the  client• AuthenVcate  with  other  services  (TwiWer,  GitHub,  etc.)

7

8

Firebase Integrations

https://www.firebase.com/docs/integrations.html10

http://angularfire.com/

12

http://angularfire.com/tutorial/#gettingstarted

TUTORIAL

13

Security Rules

https://www.firebase.com/docs/security/security-rules.html

{ "rules": { "users": { "$user": { ".read": "$user == auth.username", ".write": "$user == auth.username" } } }}

14

http://angularfire.com/documentation.html#authentication

Authentication

Firebase Simple Login

15

top related