Lab 5
Lab 5
Prepared by:
Ashraf Mohey
What is “Firebase Cloud messaging”?
Firebase Hosting provides fast and secure static hosting for your web app
2
How does it work?
Firebase Hosting is built for the modern web developer. Static sites are more
powerful than ever with the rise of front-end JavaScript frameworks like Angular
and static generator tools like Jekyll. Whether you are deploying a simple app
landing page or a complex Progressive Web App, Hosting gives you the
infrastructure, features, and tooling tailored to deploying and managing static
websites.
3
How does it work?
Once you're ready to take a site to production, you can connect your own domain
name to Firebase Hosting. We automatically provision an SSL certificate for your
domain so all your content is served securely.
4
Firebase Hosting Features
Rapid deployment
Using the Firebase CLI, you can get your app up and running in seconds.
Command line tools make it easy to add deployment targets into your build
process.
One-click rollbacks
Quick deployments are great, but being able to undo mistakes is even
better. Firebase Hosting provides full versioning and release management
with one-click rollbacks.
5
Deploying Your Web App
6
Task 4&5
Part (a):
You are required to integrate Firebase storage into you android client and allow
the user to select any type of files to upload to the storage.
Once you finish uploading you will receive the download link which you should
store using Firebase database under a node called "links".
Part (b):
Create a webpage deploy it using Firebase hosting.
This webpage should use javascript client code to access the Firebase
database and read the node "links" and dynamically display the download links in
a table.
Each download link will have a delete button beside it; clicking that button
should delete this record from the database.
Note: You MUST make sure that the web app is added to the same firebase
project that you created online for the android app to have access to the same
database.
7
Task 4&5
Note: You MUST make sure that the web app is added to the same firebase
project that you created online for the android app to have access to the same
database.
References:
https://firebase.google.com/docs/hosting/
https://firebase.google.com/docs/hosting/quickstart
https://firebase.google.com/docs/hosting/deploying
https://firebase.google.com/docs/storage/android/start
https://firebase.google.com/docs/database/web/start
8
Reference
https://firebase.google.com/docs/hosting/