A Firebase Extension is a set of Cloud Functions and a configuration file that performs a specific task or set of of tasks in response to HTTP requests or other triggering events. A Firebase Extension can easily be installed in a Firebase projects to perform the tasks the extension is built to do.
Snap Kit Firebase Extensions are a group of extensions that help developers integrate with various features in Snapchat.
Following are the list of extensions:
Learn more about building Firebase Extensions here.
Run:
make dev/setup
- Create a new directory for the new extension
mkdir creative-kit
- Bootstrap the extension
cd creative-kit
firebase init
Run:
# e.g. make dev/build/login-kit
make dev/build/<extension_dir>
Run:
# e.g. make dev/validate/login-kit
make dev/validate/<extension-dir>
An extension needs to be installed on a Firebase project for it to be tested end to end in a Google Cloud environment. Running the following command will install the specified extension on snap-connect-staging
Firebase project. The installed extension points to production Snap services, including but not limited to Auth Service.
To install a new extension instance, run:
# e.g. make dev/install/login-kit
make dev/install/<extension-dir>
To update an existing extension instance, run:
# e.g. make dev/update/login-kit instance-id=snapchat-login
make dev/install/<extension_dir> instance-id=<extension-instance-id>
Visual Studio Code is recommended. Follow installation instructions here.