Learn more about this tool.
This repo comes with a couple of handy examples, to get you up and running. You can find out what they do by reading the comments.
Once you've setup a Firebase account + project:
# From the /firebase-cloud-functions directory:
# Install the Node dependencies
cd functions && npm i && cd ../
# Install the Firebase-Cli on your computer
npm install -g firebase-tools
# Login to Firebase
firebase login
# Initialise the project
firebase init