RestfulX over Spree

1 view
Skip to first unread message

Bruno

unread,
Nov 2, 2009, 7:47:07 PM11/2/09
to restfulx-framework, scap...@gmail.com
Hi everybody,

I'm a french student in IT.

With a classmate, we are working on a online store using RoR and some
Flex views.
Actually, we think using SpreeCommerce framework and we are
looking to RestfulX to see if we can accelerate the development.

We just want to overlap store views (client views) with Flex views
generated using RestfulX.

So before to enter further development, I just want to get some advice
or any feedback and ask a little question :

- Is there any problem if we generate RestfulX views based on a subset
of Spree schema.db?

I see that some people succeeded to mix Spree and Flex, but we seem to
be the first to test such a tricky way of merging two powerful
frameworks together.

We will give you more details step after step.


Regards,

Bruno.

Dima Berastau

unread,
Nov 9, 2009, 5:44:23 AM11/9/09
to restfulx-...@googlegroups.com
Hi Bruno,

Sorry about getting back to you so late.

I don't think there should be a problem from RestfulX perspective. I
suggest you create your model.yml file by hand (to reflect the subset
of the Spree data model you want to access/work with in Flex) or
double check it after you migrate your rails schema (and get rid of
the models/relationship you don't want in Flex) and then run the code
generator.

You might want to check out the following to see what model.yml format
currently supports:

http://wiki.github.com/dima/restfulx_framework/n00b-guide-for-restfulx-dbmodelyml

Hope this helps,
Dima

bruno le hyaric

unread,
Nov 10, 2009, 5:31:15 PM11/10/09
to restfulx-framework, scapoual
Hi,

We are on the way to build a Spree/RestfdulX application.
Spree is something like an online store application's skeleton based on Rails.
There is two ways to initialize the Spree application : from spree
gem, or by cloning official spree repository.

When we start from the spree gems, the application folder hierarchy is
very different from classical Rails application and even after setting
environment.rb (config.gem 'restfulx')... RestfulX isn't found.

When we started from repository clone, it works...

So the question is, what can let us avoid to find RestfulX generators
and rake tasks when we start from the gem?

Does RestfulX perform some check to recognise an official Rails application?
or should we have a look on Rails or Gems internal mechanisms?


Best Regards,

Bruno.

2009/11/3, Bruno <bruno.l...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages