Created
March 20, 2015 01:08
-
-
Save code0100fun/3c67430c714db353f4e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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