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: ...

Get Mastering Firebase for Android Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.