O'Reilly logo

Mastering Firebase for Android Development by Ashok Kumar S

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting Firebase cloud functions

We will be serving dynamic content using cloud functions, which also means the website that we hosted in the Firebase hosting service is not going to be static content anymore. Let's deep dive into hosting a dynamic web application. 

Create a new project and initialize Hosting and functions through the Terminal as shown here:

firebase init hosting

The following screenshot shows a successful Hosting initialization:

Now, initialize Firebase functions with the following command:

$firebase init functions

After successful node initialization, let's install the express server framework in the functions directory: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required