Rails App Vs Spree Application

9 views
Skip to first unread message

VRamdo

unread,
Nov 21, 2009, 7:33:41 PM11/21/09
to Spree
I have a rails app that is focused towards social shopping. I wanted
into incorporate shopping transactional features into the existing
app. I am settled on using Spree but wondering which way to go:

1. Should I convert my existing app as a Spree Application. In that
case is there any performance implications i.e. running the existing
code within Spree?

2. Can I have a separate spree application and integration the two
apps through HTTP?

If there are any other options I am missing please provide your
thoughts.


yortz

unread,
Nov 22, 2009, 12:43:47 PM11/22/09
to Spree
If I can give you some advice on this (since actually I was trying to
do the same) just go with 2 different apps. Keep spree for what he is
doing well (handling payments, products, etc etc) and use your other
app by fetching and pulling from the same database. It's easy to share
sessions (actually I do not even need this since the logic for
accessing my 2nd app is way simpler than requiring another
authentication system).

I crushed into some weirdness trying to create an extension for my 2nd
app (it's actually a 1 controller app handling the way a registered
user, who payed via paypal standard can then upload some files for a
photocontest integrating swfupload - i will not go through here about
the massive headaches i had trying to integrate it into the app -).

You can read more on this here:

http://groups.google.com/group/spree-user/browse_thread/thread/b4fb06fbf0d2bb3e/65cd56435ca70a2d#65cd56435ca70a2d


Lately I was trying to include the 2nd app via engines as a plugin,
but I've actually gave up (at least for the moment) since it was
always complaining about
A copy of ApplicationController has been removed from the module tree
but is still active!

Sean Schofield

unread,
Nov 23, 2009, 8:39:06 PM11/23/09
to spree...@googlegroups.com
In many cases you can wedge your non-spree stuff into the site
extension (or another separate extension.) We just recently finished
helping a client integrate Spree with a very extensive Rails app. I
keep promising to blog about it but I keep getting busier and busier.

The gist of it is that you need to modify the custom boot.rb and
initializer used by Spree and have it also include the RAILS_ROOT
stuff.

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------
> --
>
> You received this message because you are subscribed to the Google Groups "Spree" group.
> To post to this group, send email to spree...@googlegroups.com.
> To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spree-user?hl=.
>
>
>
Reply all
Reply to author
Forward
0 new messages