Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.5 KB

File metadata and controls

63 lines (46 loc) · 2.5 KB

bloggr-cli-firebase

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.

Introduction

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.

Installation

In a command line window, cd into your folder where you do your projects, then:

git clone git@github.com: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!

Configuring your Own Firebase Account

This section describes how to set up your own Firebase account and how to hook this EmberJS app up to it.

  1. Follow instructions on creating your own Firebase account. Stay with the Hacker plan unless you want to spend money.
  2. Look for your app URL; will look something like sizzling-smoke-9999.firebaseio.com.
  3. In this project, add a file, private.js into folder app/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';
    }
};
  1. Run your local ember server: ember server.
  2. Your backend database will be empty; configure it by using bloggr to add authors and posts as desired.