0.7.0 • Published 6 years ago

dobi-fb v0.7.0

Weekly downloads
53
License
-
Repository
github
Last release
6 years ago

Dobi Firebase Manager

Welcome to the Dobi Firebase Manager

Quickstart Guide

First, install firebase-tools (from npm) and authenticate to your account. Create a directory, then run dobi-fb init to setup your environment.

Development Guide

  1. Use dobi-fb projects:add to add projects to your development environment.

  2. Use dobi-fb functions:setup to create a new function.

  3. If your function is database-triggered, do not use empty string.

  4. Your function will be placed in ./pkg/<function>/<version> By default, the function will be loaded from main.js/main.coffee, but you may change the settings in config.json to defined the file to load from.

  5. To deploy your functions:

  • edit the deploy_map param ./dobi-fb.json.
// example
"deploy_map": {
  "my_project": {
    "helloWorld": "1",
    "fooBar": "2"
  },
  "another_project": {
    "helloWorld": "1"
  }
}
  • optional: run dobi-fb functions:build to see how the functions compile in ./pkg/<project>/functions/pkg/<function_name>/<function_verson>

  • run dobi-fb functions:deploy to deploy your functions

TODOs

  • dobi-fb run - start a server that will allow you to test your functions
  • documentation on each command
  • documentation on managing keys
  • when keys are updated, clear out the keys first
  • diff views for function changes
  • adding node dependencies documentation
  • add a kill switch
  • command to list URLs to deployed function logs / config URLs i

Info

Author: Steven Anderson / Maestro.io - steven@sjanderson.org