Cloud Functions
About
This repository contains a collection of Cloud Functions for Firebase that automatically runs backend code in response to events triggered by Firebase features and HTTPS requests.
Getting Started
- Install Node.js for your platform.
- Install Yarn for your platform.
- Clone a copy of the repository into the current directory.
git clone https://www.github.com/doortwodoor/cloud-functions
- Navigate to the newly clone reponsitory.
cd cloud-functions
- Install all dependencies.
yarn install
- Install the Firebase CLI globally.
yarn global add firebase-tools
- Sign into Firebase using your Google account.
firebase login
- Start the watcher to automatically compile code when a source file changes.
yarn run watch
Deployment
- Create the production build.
yarn run build
- Deploy the functions.
yarn run deploy
Logs Viewing
View logs with the Firebase CLI tool.
yarn run logs
License
Cloud Funtions is licensed under the Apache-2 License.