Firebase rest & web api.pdf - Firebase REST and Web API INF 551 Wensheng Wu 1 Firebase \u2022 A cloud-based platform to support web and mobile app

Firebase rest & web api.pdf - Firebase REST and Web API...

This preview shows page 1 - 22 out of 59 pages.

Firebase: REST and Web API INF 551 Wensheng Wu 1
Image of page 1
Firebase A cloud-based platform to support web and mobile app development Used to be Envolve, a startup founded in 2011 For adding online chat functions into websites Later expanded into Firebase which was then acquired by Google in 2015 2
Image of page 2
Products Firebase (realtime) database Manage JSON documents Real-time syncing data between users and devices Firebase (cloud) storage Store images, photos, videos Firebase (user) authentication Support signin using Google, Facebook 3
Image of page 3
Firebase realtime database 4
Image of page 4
Create a Firebase account You may use your Google account Go to Firebase console: 5
Image of page 5
Click on "Add project" 6
Image of page 6
Create a Firebase project 7 Steps may vary now
Image of page 7
8
Image of page 8
Pricing plan Free Spark plan is sufficient for coursework 9
Image of page 9
Spark plan 10
Image of page 10
Change authentication rule 11 Open to public (for testing only)
Image of page 11
JSON (Javascript Object Notation) Light-weight data exchange format Much simpler than XML Language-independent Inspired by syntax of JavaScript object literals Some differences from JavaScript objects, e.g., String in JSON must be double-quoted Ok to single-quote in JavaScript (& Python) 12
Image of page 12
Syntax of JSON value = string|number|object|array| true | false | null object = {} | { members } members = pair | pair, members pair = string : value array = [] | [ elements ] elements = value | value, elements 13 These are actual values
Image of page 13
Valid JSON or not? [] {} {[]} [{}] {"name": john} {name: "john"} {"name": 25} "name" 25 {25} [25] 14
Image of page 14
JSON is case-sensitive Valid or not? True true TRUE Null false 15
Image of page 15
Example JSON 16 Value is an array Value is an object
Image of page 16
Stored in Firebase 17 Note: array stored as an object Key = index of element in array
Image of page 17
Check syntax of JSON JSON validator 18
Image of page 18
Roadmap Firebase REST API Firebase Javascript API Useful for your project 19
Image of page 19
curl Command line tool for data transfer Download from here (has Windows & Mac OS versions): You may easily grab a copy of curl in Cygwin (see next slide) 20
Image of page 20
Image of page 22

You've reached the end of your free preview.

Want to read all 59 pages?

  • Fall '14
  • Representational State Transfer, ECMAScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes