[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Shopping cart ...

Sarah Tanembaum

1/5/2005 10:45:00 PM

Is there any good(secure) Ruby shopping cart program example? Thanks
28 Answers

Aria Stewart

1/6/2005 1:07:00 AM

0

On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
> Is there any good(secure) Ruby shopping cart program example? Thanks

I'd put $100 up for anyone who would code and release under liberal license:

* A shopping cart
* that takes all data in from a post or URL
* that requires no database at all, session storage excepted.
* that runs as a CGI or FastCGI
* that can use an XHTML file or a few as a template for output.
* that has few dependencies, and can be deployed with no special
configuration beyond making generic CGI or FastCGI go on
$user[:webserverofchoice]
* that would link to paypal at least for payment processing.

Ari



James Britt

1/6/2005 2:13:00 AM

0

Aredridel wrote:
> On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
>
>>Is there any good(secure) Ruby shopping cart program example? Thanks
>
>
> I'd put $100 up for anyone who would code and release under liberal license:
>
> * A shopping cart
> * that takes all data in from a post or URL
> * that requires no database at all, session storage excepted.
> * that runs as a CGI or FastCGI
> * that can use an XHTML file or a few as a template for output.
> * that has few dependencies, and can be deployed with no special
> configuration beyond making generic CGI or FastCGI go on
> $user[:webserverofchoice]
> * that would link to paypal at least for payment processing.

Are there any security considerations, and what might they be?


James


Sarah Tanembaum

1/6/2005 2:26:00 AM

0

Aredridel wrote:
> On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
>
>>Is there any good(secure) Ruby shopping cart program example? Thanks
>
>
> I'd put $100 up for anyone who would code and release under liberal license:
>
> * A shopping cart
> * that takes all data in from a post or URL
> * that requires no database at all, session storage excepted.
> * that runs as a CGI or FastCGI
> * that can use an XHTML file or a few as a template for output.
> * that has few dependencies, and can be deployed with no special
> configuration beyond making generic CGI or FastCGI go on
> $user[:webserverofchoice]
> * that would link to paypal at least for payment processing.
>
> Ari
>
>
>
Is it because Ruby a) can't handle such application, b) not ready for
that type of apps because of performance and/or security, c) too hard to
implement(perhaps PHP is better for this type of apps), d) no one is
willing to share the scripts , e) or any that I can't think of.

Thanks

Michael Neumann

1/6/2005 3:00:00 AM

0

Sarah Tanembaum wrote:
> Aredridel wrote:
>
>> On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
>>
>>> Is there any good(secure) Ruby shopping cart program example? Thanks
>>
>>
>>
>> I'd put $100 up for anyone who would code and release under liberal
>> license:
>>
>> * A shopping cart
>> * that takes all data in from a post or URL
>> * that requires no database at all, session storage excepted.
>> * that runs as a CGI or FastCGI
>> * that can use an XHTML file or a few as a template for output.
>> * that has few dependencies, and can be deployed with no special
>> configuration beyond making generic CGI or FastCGI go on
>> $user[:webserverofchoice]
>> * that would link to paypal at least for payment processing.
>>
>> Ari
>>
>>
>>
> Is it because Ruby a) can't handle such application, b) not ready for
> that type of apps because of performance and/or security, c) too hard to
> implement(perhaps PHP is better for this type of apps), d) no one is
> willing to share the scripts , e) or any that I can't think of.

It's for sure NOT a) NOT b) and NOT c).

I've written a simple Online-Shop example in the Ruby Developers Guide
book, using different toolkits (plain CGI, FastCGI, mod_ruby, Iowa) etc.
with no other dependencies than Ruby IIRC.... no wait, I believe I used
a database as backend, but it's even easier to leave the DB out.

Have a look at Borges. It comes with SushiNet, as simple online-store.

Regards,

Michael


Aria Stewart

1/6/2005 7:42:00 AM

0

On Thu, 2005-01-06 at 11:13 +0900, James Britt wrote:
> Aredridel wrote:
> > On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
> >
> >>Is there any good(secure) Ruby shopping cart program example? Thanks
> >
> >
> > I'd put $100 up for anyone who would code and release under liberal license:
> >
> > * A shopping cart
> > * that takes all data in from a post or URL
> > * that requires no database at all, session storage excepted.
> > * that runs as a CGI or FastCGI
> > * that can use an XHTML file or a few as a template for output.
> > * that has few dependencies, and can be deployed with no special
> > configuration beyond making generic CGI or FastCGI go on
> > $user[:webserverofchoice]
> > * that would link to paypal at least for payment processing.
>
> Are there any security considerations, and what might they be?

Should be reasonably secure, but I'd love something I can offer my
mom-and-pop customers. Something simple, something that can be made to
look just like the rest of their site, something where orders are not
shipped automatically, and so can be hand-verified for sanity. If the
payment can't be faked, and there's a clear list of what was ordered and
by whom, Good Enough.

Keeping it simple would be the security needed. SSL's also cheap enough
now that one can not worry about eavesdropping if that makes things
easier.



Aria Stewart

1/6/2005 7:43:00 AM

0

On Thu, 2005-01-06 at 11:31 +0900, Sarah Tanembaum wrote:
> Aredridel wrote:
> > On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
> >
> >>Is there any good(secure) Ruby shopping cart program example? Thanks
> >
> >
> > I'd put $100 up for anyone who would code and release under liberal license:
> >
> > * A shopping cart
> > * that takes all data in from a post or URL
> > * that requires no database at all, session storage excepted.
> > * that runs as a CGI or FastCGI
> > * that can use an XHTML file or a few as a template for output.
> > * that has few dependencies, and can be deployed with no special
> > configuration beyond making generic CGI or FastCGI go on
> > $user[:webserverofchoice]
> > * that would link to paypal at least for payment processing.
> >
> > Ari
> >
> >
> >
> Is it because Ruby a) can't handle such application, b) not ready for
> that type of apps because of performance and/or security, c) too hard to
> implement(perhaps PHP is better for this type of apps), d) no one is
> willing to share the scripts , e) or any that I can't think of.

None of the above. Just hasn't been done in anything but a one-off sort
of way that I've seen.

So ... d). Sorta.



gabriele renzi

1/6/2005 11:32:00 AM

0

Aredridel ha scritto:
> On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
>
>>Is there any good(secure) Ruby shopping cart program example? Thanks
>
>
> I'd put $100 up for anyone who would code and release under liberal license:
>
> * A shopping cart
> * that takes all data in from a post or URL
> * that requires no database at all, session storage excepted.
> * that runs as a CGI or FastCGI
> * that can use an XHTML file or a few as a template for output.
> * that has few dependencies, and can be deployed with no special
> configuration beyond making generic CGI or FastCGI go on
> $user[:webserverofchoice]
> * that would link to paypal at least for payment processing.
>
> Ari
>
>
>

ah, bounties, cool :)
I wonder if this things should go through RubyCentral.

Anyway: why just paypal for payment?

Kaspar Schiess

1/6/2005 12:23:00 PM

0

Hello Sarah,

> Is it because Ruby a) can't handle such application, b) not ready for
> that type of apps because of performance and/or security, c) too hard
> to implement(perhaps PHP is better for this type of apps), d) no one
> is willing to share the scripts , e) or any that I can't think of.

I somehow do get the feeling that you have been biased negativly towards
Ruby by something that happend to you. Is it the lack of documentation
in some parts ? Or the lack of support ?

Ruby is in some ways more of a 'real language' than PHP, where support
for a lot of common tasks is compiled in the language. Ruby must include
these in the form of libraries, and that in turn implies some
difficulties when installing, although projects like RPA and rubygems do
facilitate that process enormously.

More to the subject, I believe such an application does not exist
because it is too easy to build your own version of it. Integrating a
third party shopping cart with a Rails application is probably bound to
be more difficult than just coding it up yourself. A shopping cart has
many dependencies to the web application framework and thus it is not
completely trivial to program a framework-less version of a shopping
cart as the first post asks for.

I would need to see a few (html) screenshots of such an application to
completely understand what is asked for here.

yours,
kaspar

hand manufactured code - www.tua.ch/ruby



Florian Gross

1/6/2005 2:08:00 PM

0

Aredridel wrote:

> On Thu, 2005-01-06 at 07:46 +0900, Sarah Tanembaum wrote:
>>Is there any good(secure) Ruby shopping cart program example? Thanks
> I'd put $100 up for anyone who would code and release under liberal license:
>
> * A shopping cart
> [snip]

Not that I'm likely going to take part, but still, how would it receive
the product data? Having information about the wanted interface would be
nifty. Even niftier if you can come up with test cases. :)

Alan Garrison

1/6/2005 4:04:00 PM

0

A likely even more offtopic question... (total Ruby noob and list
lurker here) I've been hacking PHP for years now (and it's dulling my
mind, hence my interest in Ruby) and have been coding stuff for the
Horde project (www.horde.org). Horde is an open source general web
application framework in PHP and has drop-in applications for email,
sieve rule editor, time tracking, a ticket system, a calendar app w/
appointments, a wiki, a half-assed shopping cart app, etc... The Horde
core app(s) handles user authentication, user administration, ACLs, a
HTML template engine, etc. Given my basic understanding of Rails I'm
thinking that writing drop-in apps may be difficult, but then again I'm
still wrapping my brain around the MVC concept. With Horde to add a new
app, you just make a subdirectory from the base Horde directory, fiddle
with a few things, and your app is now part of the whole site.

Does a Ruby based Horde-ish architecture all ready exist? I'd imagine
that if something like this were developed, writing drop-in apps may be
a better approach for things like shopping carts as opposed to writing
ad hoc apps that just handle the basics but have similar needs
(authentication, session handling, templates, etc).

Just my $0.02 (adjust for inflation)