Introduction to Fire.js Framework (alpha) Johan Hernandez [email_address] @thepumpkin
Requirements <ul><li>Node.js 0.4.5 or later (nodejs.org)
NPM (npmjs.org)
Fire & Fire IDE </li><ul><ul><li>npm install fire fire-ide -g </li></ul></ul></ul>
Demo Creating a simple Contacts Book API with fire-web, mongodb-expressions and Cloudfoundry.com  Create Contact POST /con...
What is Fire.js? <ul><li>Use JSON Documents that orchestrate asynchronous tasks called  Expressions
Eliminates the use of Javascript and callbacks for reusable behavior.
It looks structured and synchronous, but it's 100% asynchronous under the hood.
It's easy! </li></ul>
Upcoming SlideShare
Loading in …5
×

Introduction to Fire.js (alpha)

1,918 views

Published on

Introduction to the Fire.js Framework and Fire.js IDE open source tools. Know more at firejs.firebase.co

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,918
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to Fire.js (alpha)

  1. 1. Introduction to Fire.js Framework (alpha) Johan Hernandez [email_address] @thepumpkin
  2. 2. Requirements <ul><li>Node.js 0.4.5 or later (nodejs.org)
  3. 3. NPM (npmjs.org)
  4. 4. Fire & Fire IDE </li><ul><ul><li>npm install fire fire-ide -g </li></ul></ul></ul>
  5. 5. Demo Creating a simple Contacts Book API with fire-web, mongodb-expressions and Cloudfoundry.com Create Contact POST /contacts List Contacts GET /contacts
  6. 6. What is Fire.js? <ul><li>Use JSON Documents that orchestrate asynchronous tasks called Expressions
  7. 7. Eliminates the use of Javascript and callbacks for reusable behavior.
  8. 8. It looks structured and synchronous, but it's 100% asynchronous under the hood.
  9. 9. It's easy! </li></ul>
  10. 10. Expressions Expression: Encapsulated unit of asynchronous code. Parts of an Expression <ul><li>Name
  11. 11. Hint
  12. 12. Input </li></ul>JSON Syntax “ @ <name> ( <hint> )”: <input>
  13. 13. Example JSON Expression { “ name”: “HelloWorld”, “ json”: “Hello World” } { “ name”: “HelloWorld”, “ json”: { “ @return ”: { “ @concat ”: [“Hello”, “ “, “World”] } } } Static Values Dynamic Example
  14. 14. Real world Example: MongoDB { “ name”: “MongoInsertSample”, “ json”: { “ @scopeSet(result) ”: { “ @Mongo.Insert(contacts) ”: { “ name”: “Chuck Norris”, “ email”: “ chuck@example.com” } }, “ @get(result._id) ”: null } } MongoInsertSample.fjson Result &quot;4edd34c1c7e7452016000001&quot;
  15. 15. The Runtime in Action Runtime Expressions Types ThirdPartyJS.A.fjs ThirdPartyJS.B.fjs ThirdPartyJSON.A.fjson ThirdPartyJSON.B.fjson require(...) JSONScript Compiler ThirdPartyJS.A ThirdPartyJS.B ThirdPartyJSON.A ThirdPartyJSON.B
  16. 16. About the Project <ul><li>Status: v0.1 Alpha, v1.0 Stable coming in Q1 2012
  17. 17. License: MIT
  18. 18. Wiki: github.com/firejs/fire/wiki
  19. 19. Github: github.com/firejs
  20. 20. Web: firejs.firebase.co
  21. 21. Twitter: @fire_js </li></ul>www.firebase.co Thanks

×