Skip to content

Qolzam/openfaas-firebase-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFaaS firebase storage using Golang Http middleware template

Setup

I assume you are running your OpenFaaS server on http://127.0.0.1:31112. If not please change the URL in code to your own OpenFaaS server URL.

  1. Generate a Firebase private key from firebase console and your project setting to initialize the SDK.
  2. Copy the service account key file into storage folder with the name serviceAccountKey.json.
  3. Change the bucket name(bucket_name) in stack.yml file environment variable to your firebase bucket name.
  4. Build and deploy the function:
faas up

Example

You can test your function with upload.html file. In response you will have the url to access to your file.

About

Using firebase storage (Google storage) top of OpenFaaS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published