Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning IoT with Particle Photon and Electron

You're reading from  Learning IoT with Particle Photon and Electron

Product type Book
Published in Sep 2016
Publisher
ISBN-13 9781785885297
Pages 136 pages
Edition 1st Edition
Languages
Authors (3):
Rashid Khan Rashid Khan
Profile icon Rashid Khan
Kajari Ghoshdastidar Kajari Ghoshdastidar
Profile icon Kajari Ghoshdastidar
Ajith Vasudevan Ajith Vasudevan
Profile icon Ajith Vasudevan
View More author details

Data storage on the cloud


We use Firebase (https://www.firebase.com) for storing data on the cloud. Firebase is a backend-as-a-service provider which provides REST endpoints for data storage. We create webhooks to the Firebase REST endpoints to push data from the Photon to the cloud. We will pass the data to be stored in the Particle.publish() function at the time of invocation of the webhook event. 

The following screenshot shows Firebase project creation screen:

Figure 8: Project creation in firebase.com

We need to create a project in Firebase, but first we need to create an account at firebase.com. Point your browser to https://www.firebase.com, and create an account if you don't already have one. After the login/signup process, go ahead and create a new project as shown in Figure 8. Give a unique name to your Firebase project, and Firebase will generate a unique URL for your project upon creation, as highlighted in Figure 9. Keep the URL handy, as we will need it to create the webhook...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}