<commit_before># Spree Essentials [![Build Status](https://secure.travis-ci.org/citrus/spree_essential_blog.png)](http://travis-ci.org/citrus/spree_essential_blog)


A complete blogging solution for [Spree Commerce](http://spreecommerce.com) with archives, categories, tags, disqus comments and related products. 

This extension relies on [spree_essentials](https://github.com/citrus/spree_essentials) for it's editor, uploads admin and tab in the admin.


Installation
------------

If you don't already have an existing Spree site, [click here](https://gist.github.com/946719) then come back later... You can also read the Spree docs [here](http://spreecommerce.com/documentation/getting_started.html)...

Otherwise, follow these steps to get up and running with spree_essential_blog:

First, add spree_essential_blog to your Gemfile... it hasn't been released to Rubygems yet so we'll grab it from git.

    gem 'spree_essential_blog', '~> 0.1.0'

Run the generators to create the migration files.

    rails g spree_essentials:install
    rails g spree_essentials:blog

Now migrate your database...

    rake db:migrate
    
Boot your server and checkout the admin!

    rails s
    
    
### Sample Posts

If you'd like some sample posts, just use the rake command from your project:
    
    rake db:sample:blog



Testing
-------

Clone this repo to where you develop, bundle up, then run `dummier` to get the show started:

    git clone git://github.com/citrus/spree_essential_blog.git
    cd spree_essential_blog
    bundle install
    bundle exec dummier

This will generate a fresh rails app in test/dummy, install spree & spree_essential_blog, then migrate the test database. Sweet.

Now run the tests with:

    rake
    
    

Demo
----

You can easily use the `test/dummy` app as a demo of spree_essential_blog. Just `cd` to where you develop and run:
    
    git clone git://github.com/citrus/spree_essential_blog.git
    cd spree_essential_blog
    mv lib/dummy_hooks/after_migrate.rb.sample lib/dummy_hooks/after_migrate.rb
    bundle install
    bundle exec dummier
    cd test/dummy
    rails s
    



Change Log
----------

**0.1.0 - 2011/12/15**

* Release v0.1.0


**2011/12/15**
<commit_msg>Updated demo section of README.md to reflect proper steps to get spree_essential_blog running.<commit_after># Spree Essentials [![Build Status](https://secure.travis-ci.org/citrus/spree_essential_blog.png)](http://travis-ci.org/citrus/spree_essential_blog)


A complete blogging solution for [Spree Commerce](http://spreecommerce.com) with archives, categories, tags, disqus comments and related products. 

This extension relies on [spree_essentials](https://github.com/citrus/spree_essentials) for it's editor, uploads admin and tab in the admin.


Installation
------------

If you don't already have an existing Spree site, [click here](https://gist.github.com/946719) then come back later... You can also read the Spree docs [here](http://spreecommerce.com/documentation/getting_started.html)...

Otherwise, follow these steps to get up and running with spree_essential_blog:

First, add spree_essential_blog to your Gemfile... it hasn't been released to Rubygems yet so we'll grab it from git.

    gem 'spree_essential_blog', '~> 0.1.0'

Run the generators to create the migration files.

    rails g spree_essentials:install
    rails g spree_essentials:blog

Now migrate your database...

    rake db:migrate
    
Boot your server and checkout the admin!

    rails s
    
    
### Sample Posts

If you'd like some sample posts, just use the rake command from your project:
    
    rake db:sample:blog



Testing
-------

Clone this repo to where you develop, bundle up, then run `dummier` to get the show started:

    git clone git://github.com/citrus/spree_essential_blog.git
    cd spree_essential_blog
    bundle install
    bundle exec dummier

This will generate a fresh rails app in test/dummy, install spree & spree_essential_blog, then migrate the test database. Sweet.

Now run the tests with:

    rake
    
    

Demo
----

You can easily use the `test/dummy` app as a demo of spree_essential_blog. Just `cd` to where you develop and run:
    
    git clone git://github.com/citrus/spree_essential_blog.git
    cd spree_essential_blog
    mkdir lib/dummy_hooks
    mv test/dummy_hooks/after_migrate.rb.sample lib/dummy_hooks/after_migrate.rb
    bundle install
    bundle exec dummier
    cd test/dummy
    bundle exec rake db:migrate
    bundle exec rake db:sample:blog
    bundle exec rails s

Setup is complete. Open `localhost:3000\blog` in your browser to see your posts.



Change Log
----------

**0.1.0 - 2011/12/15**

* Release v0.1.0


**2011/12/15**

{'fraction_non_alphanumeric': 0.09143100148841166, 'fraction_numerical': 0.014033595577291091, 'mean_word_length': 3.400374181478017, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4343144', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1419, 'n_words': 510}