Code Monkey home page Code Monkey logo

spree_essential_blog's Introduction

Spree Essential Blog Build Status

A complete blogging solution for Spree Commerce with multiple-blogs, archives, categories, tags, disqus comments and related products.

This extension relies on 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 then come back later... You can also read the Spree docs here...

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.

# Spree 1.1.x
gem 'spree_essential_blog', :git => 'git://github.com/citrus/spree_essential_blog.git', :branch => 'master'

# Spree 1.0.x
gem 'spree_essential_blog', :git => 'git://github.com/citrus/spree_essential_blog.git', :branch => '1.0.x'

# Spree 0.70.x
gem 'spree_essential_blog', '~> 0.1.0'

# Spree 0.60.x
gem 'spree_essential_blog', :git => 'git://github.com/citrus/spree_essential_blog.git', :branch => '0.60.x'

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

Note: if you receive identify: command not found errors please ensure ImageMagick is installed.


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
cp test/dummy_hooks/after_migrate.rb.sample test/dummy_hooks/after_migrate.rb
bundle install
bundle exec dummier
cd test/dummy
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

  • Remove spork dev dependency

2011/12/14

  • Add Spree 0.70.x compatibility

2011/8/9

2011/6/7

  • Added Disqus for comments
  • Re-namespaced from Admin::Blog to Blog::Admin
  • Added more tests for categories

2011/6/6

  • Pulled GH1 (Thanks @detierno!)
  • Switched to dummier for demo & testing
  • Improved testing
  • Improved documentation

2011/4/13 - 2011/5/27

  • Initial development

Contributors

If you'd like to help out feel free to fork and send me pull requests!


License

Copyright (c) 2011 Spencer Steffen & Citrus, released under the New BSD License All rights reserved.

spree_essential_blog's People

Contributors

citrus avatar dv avatar kpitn avatar kylewest avatar moladukes avatar priviterag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spree_essential_blog's Issues

Category show posts arn't ordered

PostCategoriesController#show doesn't order the posts

Suggest just changing line 8 of PostCategoriesController to be

@posts = @category.posts.ordered.live

Sorry I don't have time to submit a proper pull request with tests etc atm.

uninitialized constant SpreeEssentialBlog::Config

Hi!
I'm getting the error

uninitialized constant SpreeEssentialBlog::Config

, but only after removing the 'if @blog_config' statement in posts/show.html.erb

 <%= render "spree/blogs/shared/disqus_comments" if @blog_config %>

@blog_config seems to be nil; I can't find it anywhere in the code.

rss feed broken

I think the rss feed is broken? I tried the out commented url. It creates an url in the form of blog.rss
Altough I do have a blog named blog, i get an error message:

Couldn't find Spree::Blog with permalink = blog.rss

Perhaps this is broken, or I am doing something wrong, or is this a known issue?

Thanks for a great extension!

Conflict with spree_wishlist plugin

This plugin seems to interfere with the spree_wishlist plugin's routes. When I try to view a wishlist or add to an existing wishlist, it gives me this error:

Couldn't find Spree::Blog with permalink = wishlists/65f...

Is there a list of exceptions that a blog's permalink cannot be set to that I can add wishlists to? It doesn't seem to effect any other routes, so I assumed there was one somewhere. I can't find it, though.

1.2.x/1.3.x support

Are there any plans to update this to support 1.2.x or 1.3.x?

It's a really nice plugin and it would be a shame for it to be abandoned.

Couldn't find Spree::Blog with permalink = assets/markdown.set.js

This is probably not an issue with this gem in particular, but I'll post the solution here when I find it. The line causing the error is

get ":blog_id/:year(/:month(/:day))" => "posts#index", :as => :post_date

, which is perfectly normal. The problem seems to be that the asset routes don't seem to get loaded before the normal routes :(

markitup.css isn't precompiled

Hi.
I use a spree of 0-70-stable and rails 3.1.3. I installed the gem spree_essential_blog and development mode, everything worked fine. But if you run the application in production mode, I get the error "markitup.css isn't precompiled". rake assets: precompile was performed.

gem 'spree_essential_blog', '~> 0.1.0' in my Gemfile

Don't find spree_essential_blog compatible version with Spree- 2.1

Actually I am looking to upgrade spree version from 1.1 to 2.1 where I am getting the more dependency errors why because I have used more spree extentions which were supportable to spree 1.1.

I don't find any below extentions compatible versions with Spree 2.1.

  • spree_essentials
  • spree_essentials_blog

Spree 2.1 and Spree_extension that depends upon spree_core 1.3.x

Could you please tell me, manually can I clone essentials and extensions to customize those based on the spree-2.1?

does this make sense? Or Can I expect release of new stable version for the Spree-2.1 In future ?

Doesn't work with Spree 1.0.x

It won't install the gem and says it depends on ~> 0.5.0 of spree essentials which is only compatible with spree 1.1.x.

List of blog posts not showing up on home page

Anyone getting this to work? I see the code for it in essential_cms but I can't get mine to show up. I noticed 'spree/blog/shared/preview' needed to be changed to 'spree/blogs/shared/preview' but that didn't really help because Spree::SpreeEssentialBlog wasn't defined. Is this something that was abandoned? Is there another way to get a list of blog posts to show up on the homepage that I haven't discovered? Please enlighten me.

<% if defined?(Spree::SpreeEssentialBlog) && [email protected]? %>


<%= t('blog.home.title') %>


<%= render :partial => 'spree/blogs/shared/preview', :collection => @posts, :as => :post %>

<% end %>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.