Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 1.72 KB

README.md

File metadata and controls

52 lines (38 loc) · 1.72 KB

hubs-asset-api

License: MIT

This Firebase project offers an API that returns 302 redirect to URLs written on a Google Sheets. This is useful for editing assets' URLs of Mozilla Hubs / Hubs Cloud from outside of Hubs or Spoke.

Structure

Usage

1. Prepare Firebase Project

$ npm i -g firebase-tools
$ firebase login
$ firebase projects:list
$ firebase use {your-project-id}

2. Prepare Google Sheets

  • Enable a link sharing for anyone with the link
  • Copy the Spreadsheet ID from the URL (https://docs.google.com/spreadsheets/d/{spreadsheetId}/edit#gid=0)
  • Set information of the spreadsheet in the project
$ cp functions/config/example.yaml functions/config/default.yaml
$ vi functions/config/default.yaml

3. Enable Sheets API

4. Deploy Project