April 2018
Intermediate to advanced
284 pages
6h 43m
English
Any mobile or web app will need a storage space that stores user-generated content such as documents, photos, or videos in a secure manner and scales well. Cloud Storage is designed with the same requirement in mind and helps you easily store and serve user-generated content. It provides a robust streaming mechanism for a best end-user experience.
Here's how we can configure Firebase Cloud Storage:
// Configuration for your app // TODO: Replace with your project's config object var config = { apiKey: '<your-api-key>', authDomain: '<your-auth-domain>', databaseURL: '<your-database-url>', storageBucket: '<your-storage-bucket>' }; firebase.initializeApp(config); // Get a reference to the storage service var storage = firebase.storage(); ...