GithubHelp home page GithubHelp logo

moneyspyder / spree-blogging-spree Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coalla/spree-blogging-spree

0.0 6.0 0.0 486 KB

Basic blog + news archive functionality for Spree E-Commerce app.

License: BSD 3-Clause "New" or "Revised" License

Ruby 72.23% JavaScript 1.53% CSS 2.26% HTML 23.97%

spree-blogging-spree's Introduction

SpreeBloggingSpree

Build Status

A basic blogging solution for use with the Spree E-Commerce platform.

The blog is found under /blog on the website font end. Blog entries have fields for title, body, summary, date published, and author. Each blog entry can also have categories and tags associated with it.

The Spree Editor extension can be used to provide a rich text experience when editing the body of a blog entry.

The author is an instance of Spree.user_class, typically a Spree::User. The author can be selected from users with the blogger role when editing a blog entry in the admin. Some additional fields, including nickname, website URL, and Google Plus URL are added to the user model. Google Authorship information is added to the page head when the Google Plus URL is set.

There is no commenting system yet. One option for adding comments is to override the spree/blog_entries/comments partial and include and external commenting system, such as Disqus.

Admin users can preview blog entries before they're made publicly visible.

This fork differs significantly from the original, it started out as a newly generated extension for Spree 1.2 with the logic copied over and tests moved to RSpec.

Screenshot

This screenshot shows some example blog entries with the widgets in the left sidebar:

Screenshot

Installation

Add to your Gemfile:

gem 'spree_blogging_spree', github: 'stefansenk/spree-blogging-spree'

Bundle your dependencies and run the installation generator:

    bundle install
    rake railties:install:migrations
    rake db:migrate

Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

bundle
bundle exec rake test_app
bundle exec rspec spec

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_blogging_spree/factories'

TODO

Some additional features could include:

  • Allow searching for blog entries within the admin.
  • Allow searching for blog entries from the shop front end.
  • Get default per page from preferences.
  • Allow images to be uploaded and inserted. Currently, images (other than the featured image) must be uploaded via other means.
  • Add comments (including mechanisms for dealing with spam).
  • Add abilities for the 'blogger' role, so a blogger can only manage their own blog entries within the admin.
  • Add Twitter Cards meta tags.
  • Add Facebook Open Graph meta tags.

Copyright (c) 2014 Stefan Senk, released under the New BSD License

spree-blogging-spree's People

Contributors

stefansenk avatar fonemstr avatar forever-sumit avatar antonal avatar hugosantosred avatar divineforest avatar dedhaz avatar aaron2ti avatar b8in avatar holodnak avatar rterbush avatar

Watchers

Peter Forster avatar Warren Sangster avatar James Cloos avatar  avatar  avatar Christopher Reeve avatar

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.