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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.