The EmberJS bloggr app implemented in the Ember-CLI environment using Firebase as the back end.
This project is in progress. At this time, if you install it, it will read some "fixture" data from a Firebase back end. Attempting to do other CRUD operations will fail. We're in the process of fixing these.
Thie project is for the Ember-SC group's Hackfest at the Beach.
The purpose of this hack-fest is to start with the Bloggr project implemented by Tilde developer Tom Dale. We have built the app following along the video.
Furthermore the team has incorporated this 'completed' exercise into Ember-CLI. Consequently this bloggr now uses the Ember model and Firebase to set up a remote store.
In a command line window, cd
into your folder where you do your projects, then:
git clone [email protected]:Ember-SC/bloggr-cli-firebase.git
cd bloggr-cli-firebase
npm install -g ember-cli # Tested using version 0.0.28
npm install
bower install
ember server
and then browse away!
This section describes how to set up your own Firebase account and how to hook this EmberJS app up to it.
- Follow instructions on creating your own Firebase account. Stay with the
Hacker
plan unless you want to spend money. - Look for your app URL; will look something like
sizzling-smoke-9999.firebaseio.com
. - In this project, add a file,
private.js
into folderapp/initializers
with the following contents:
// This file is NOT checked in, so you can put your
// private info here.
export default {
name: 'private',
initialize: function() {
// NOTE: this is necessary for setting your private ID for your Firebase account.
// You should substitute your own *private* portion of your unique Firebase data URL:
window.ENV.firebase_instance = 'sizzling-smoke-9999';
}
};
- Run your local ember server:
ember server
. - Your backend database will be empty; configure it by using
bloggr
to add authors and posts as desired.