DoorTwoDoor / cloud-functions

Cloud Functions for Firebase that automatically runs backend code in response to events triggered by Firebase features and HTTPS requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install Node.js for your platform.
  2. Install Yarn for your platform.
  3. Clone a copy of the repository into the current directory.
git clone https://www.github.com/doortwodoor/cloud-functions
  1. Navigate to the newly clone reponsitory.
cd cloud-functions
  1. Install all dependencies.
yarn install
  1. Install the Firebase CLI globally.
yarn global add firebase-tools
  1. Sign into Firebase using your Google account.
firebase login
  1. Start the watcher to automatically compile code when a source file changes.
yarn run watch

Deployment

  1. Create the production build.
yarn run build
  1. 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.

About

Cloud Functions for Firebase that automatically runs backend code in response to events triggered by Firebase features and HTTPS requests

License:Apache License 2.0


Languages

Language:JavaScript 100.0%