Skip to content

MehdiZonjy/firebase-storage-node-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b5a2c92 · Nov 13, 2016

History

2 Commits
Nov 13, 2016
Nov 13, 2016
Nov 13, 2016

Repository files navigation

For more information please refer to my blog post

Firebase Upload Demo

This repository demonstrates how to upload a file to Firebase Storage using Google Cloud Storage sdk. In order to get this working you need the following 0. Install dependencies

npm install
  1. create a Firebase project.
  2. Generate a Private Key File from your Firebase project dashboard and place it in the root of the repository.
  3. Replace keyFileName with the name of your Private Key File
const keyFilename="./my-private-api-key-file.json"; //replace this with api key file
  1. Find your projectId from your Firebase application dashboard. It should be under the Storage section formatted as such
 gs://<PROJECT_ID>.appspot.com
  1. Replace projectId variable with your PROJECT_ID
const projectId = "my-project-id-should-go-here" //replace with your project id

About

A demo the shows how to upload to firebase storage from node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published