Skip to content

Instantly share code, notes, and snippets.

@code0100fun
Created March 20, 2015 01:08
Show Gist options
  • Save code0100fun/3c67430c714db353f4e5 to your computer and use it in GitHub Desktop.
Save code0100fun/3c67430c714db353f4e5 to your computer and use it in GitHub Desktop.
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