Skip to content

firebase functions to store and return third party API keys for mobile

Notifications You must be signed in to change notification settings

mayurdubepg/firebase-functions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

firebase-functions

firebase functions to store and securely return third party API keys for mobile

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Add firebase project on console.firebase.google.com Install firebase on your machine. Refer Firebase functions - get started

Installing

  1. git clone the project
  2. Open project directory, run firebase login
  3. Run firebase init project

firebase will ask you to whether to overwrite package.json and index.js

Select NO for both the options

? File functions/package.json already exists. Overwrite? No
i  Skipping write of functions/package.json
? File functions/index.js already exists. Overwrite? No
i  Skipping write of functions/index.js
? Do you want to install dependencies with npm now? Yes
  1. Set API key as firebase environment variable firebase functions:config:set api.key=API_KEY api.id=SERVICE_NAME
  2. If you are going test locally, set up runtime environemnts firebase functions:config:get > .runtimeconfig.json
  3. cd functions/
  4. npm install

Running locally

firebase serve --only functions

Deployment

firebase deploy --only functions

About

firebase functions to store and return third party API keys for mobile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%