<commit_before># bloggr-cli

The EmberJS bloggr app implemented in the Ember-CLI environment

## Introduction

Thie project is a follow-on for the [Ember-SC](http://www.meetup.com/Ember-SC/) group's
[Hackfest at the Beach](http://www.meetup.com/Ember-SC/events/177022872/).

The purpose of this hack-fest is to start with the [Bloggr](https://github.com/oldfartdeveloper/bloggr-client)
project implemented by [Tilde](http://www.tilde.io/) developer <NAME>.  We have built the app following along
the [video](https://www.youtube.com/watch?feature=player_detailpage&v=1QHrlFlaXdI).

Now the team wants to incorporate this 'completed' exercise into [Ember-CLI](https://github.com/stefanpenner/ember-cli).
This is the project to do this.

## How to Do the Exercise

### Preparation

Checkout `ember-cli`:

```bash
cd work # or whatever your project directory is.
git clone git@github.com:stefanpenner/ember-cli.git
cd ember-cli
npm link # make the files in ember-cli global.
```

Create a new project using the `ember` command:

```bash
ember new ../bloggr-cli # Build a new project in the same work directory as ember-cli
cd ../bloggr-cli
npm link ../ember-cli # symlink to the global
```

Fire Up the Ember server:

```bash
ember server
```

and use your favorite *recent* browser to [http://localhost:4200](http://localhost:4200).  You should see "Welcome to Ember.js".

#### What if the Above Sequence Doesn't Work?

Sometimes the latest revision of Ember-CLI doesn't "work"; this is typically due to a transient `npm` package version incompatibility.
For this exercise you can use an older version of Ember-CLI.  In this case, recover by doing the following:

```bash
cd ..                       # or wherever your projects folder is
rm -rf ember-cli
git clone <EMAIL>:stefanpenner/ember-cli.git
cd ember-cli
git checkout -b origin/master db82f314192552f73977c633a99bc47ae99975aa   # A version of ember-cli that worked for the author
npm link
rm -rf ../bloggr-cli
ember new ../bloggr-cli
cd ../bloggr-cli
npm link ../ember-cli
ember server
```

Now you can continue with building the App in the next section.

#### I Just Want to Run the Completed Application

`cd` into your folder where you do your projects, then:

```bash
git clone <EMAIL>:oldfartdeveloper/bloggr-cli.git
cd bloggr-cli
npm link ../ember-cli
npm install
bower install
ember server
```

### Building the App

Remember that we've already built the app following the video.
Now we're going to build the same app but within the Ember/Broccoli framework.
This will illustrate two advantages:

1. When you save any source file, the current browser page automatically refreshes; you don't have to manually
   refresh it.  Try this: in `app/templates/application.hbs`:

   ```html
   <h2 id='title'>Welcome to Ember.js</h2>

   {{outlet}}
   ```<commit_msg>Updated to pull completed project from Ember-SC instead of oldfartdeveloper<commit_after># bloggr-cli

The EmberJS bloggr app implemented in the Ember-CLI environment

## Introduction

Thie project is a follow-on for the [Ember-SC](http://www.meetup.com/Ember-SC/) group's
[Hackfest at the Beach](http://www.meetup.com/Ember-SC/events/177022872/).

The purpose of this hack-fest is to start with the [Bloggr](https://github.com/oldfartdeveloper/bloggr-client)
project implemented by [Tilde](http://www.tilde.io/) developer Tom Dale.  We have built the app following along
the [video](https://www.youtube.com/watch?feature=player_detailpage&v=1QHrlFlaXdI).

Now the team wants to incorporate this 'completed' exercise into [Ember-CLI](https://github.com/stefanpenner/ember-cli).
This is the project to do this.

## How to Do the Exercise

### Preparation

Checkout `ember-cli`:

```bash
cd work # or whatever your project directory is.
git clone <EMAIL>:stefanpenner/ember-cli.git
cd ember-cli
npm link # make the files in ember-cli global.
```

Create a new project using the `ember` command:

```bash
ember new ../bloggr-cli # Build a new project in the same work directory as ember-cli
cd ../bloggr-cli
npm link ../ember-cli # symlink to the global
```

Fire Up the Ember server:

```bash
ember server
```

and use your favorite *recent* browser to [http://localhost:4200](http://localhost:4200).  You should see "Welcome to Ember.js".

#### What if the Above Sequence Doesn't Work?

Sometimes the latest revision of Ember-CLI doesn't "work"; this is typically due to a transient `npm` package version incompatibility.
For this exercise you can use an older version of Ember-CLI.  In this case, recover by doing the following:

```bash
cd ..                       # or wherever your projects folder is
rm -rf ember-cli
git clone <EMAIL>:stefanpenner/ember-cli.git
cd ember-cli
git checkout -b origin/master db82f314192552f73977c633a99bc47ae99975aa   # A version of ember-cli that worked for the author
npm link
rm -rf ../bloggr-cli
ember new ../bloggr-cli
cd ../bloggr-cli
npm link ../ember-cli
ember server
```

Now you can continue with building the App in the next section.

#### I Just Want to Run the Completed Application

`cd` into your folder where you do your projects, then:

```bash
git clone <EMAIL>:Ember-SC/bloggr-cli.git
cd bloggr-cli
npm link ../ember-cli
npm install
bower install
ember server
```

### Building the App

Remember that we've already built the app following the video.
Now we're going to build the same app but within the Ember/Broccoli framework.
This will illustrate two advantages:

1. When you save any source file, the current browser page automatically refreshes; you don't have to manually
   refresh it.  Try this: in `app/templates/application.hbs`:

   ```html
   <h2 id='title'>Welcome to Ember.js</h2>

   {{outlet}}
   ```
{'fraction_non_alphanumeric': 0.10335735630163473, 'fraction_numerical': 0.017226226050272457, 'mean_word_length': 3.9824868651488616, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 8, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '32972', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1721, 'n_words': 708}