Skip to content

Instantly share code, notes, and snippets.

@code0100fun
Created March 20, 2015 01:09
Show Gist options
  • Save code0100fun/baa9813e088dff85ce0f to your computer and use it in GitHub Desktop.
Save code0100fun/baa9813e088dff85ce0f to your computer and use it in GitHub Desktop.
Ember CLI Firebase setup

Firebase example

Init

$ ember new chat
$ cd chat/
$ npm install --save emberfire
$ npm install -g firebase-tools
$ firebase init
... provide app info and login

Configure

Adjust firebase.json

{
  "firebase": "emberjax-chat",
  "public": "dist/",
  "ignore": [
    "firebase.json",
    "**/.*",
    "**/node_modules/**"
  ],
  "rewrites": [ {
    "source": "**",
    "destination": "/index.html"
  }]
}

Run

$ ember serve

Visit localhost:4200 and you should see "Welcome to Ember.js"

Note

If you get a build error like:

install Firebase 2.2.3 with bower:

$ bower install --save firebase#2.2.3

##Deploy

$ firebase deploy
Successfully deployed
$ firebase open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment