What you’ll need
- Node.js (version 6.0 or above) development environment
- Firebase
- Mailtrap
- Nodemailer
What we’ll cover
- Setting up Firebase
- Setting up Mailtrap
- Setting up Nodemailer
- Creating a Nodemailer transporter
- Creating a Firebase function
- Building the email message
- Deploying to Firebase
Are you ready?
Let’s get going…
1. Setting up Firebase
Step 1.1: Create a Firebase project
Go to your instance of the Firebase UI and create a new project.
Step 1.2: Install Firebase CLI
The Firebase CLI is a versatile utility that provides you with an easy way to manage, view, and deploy code and assets to your Firebase project.
You can install the utility on your development environment using a method that matches your preferences and use cases. Regardless of how you install it, you’ll still get the same functionalities.
For this tutorial, we’ll use the following command in our Windows Command Prompt to install the CLI globally: