Thursday, April 15, 2010

Getting started with Heroku and Spree: Part 3 - Installing Spree [GUIDE]

At Gunner Technology, we have found that if we give a little, we usually get more in return.

Here's what I mean. Most of our clients know nothing about the Internet other than some buzz words around it. Giving them specs, bids, wireframes, sample recommendations, etc isn't very powerful.

We've found that building a prototype and showing them examples of what we want to do is about five times more likely to end in a relationship than if we try to tell them what we want to do.

This means banging out a WordPress site on a shared host. Setting up a Twitter account and faking interaction, promotions and messages.

Right now, we're working on forming a relationship with a Mexican restaurant. They don't have a Web site, and we feel they could see a 30% increase in sales by taking orders online, registering their site with Yelp, Google and Bing and implementing a Twitter/Foursquare marketing campaign.

So, we're going to put together a demo site for them using Spree and we'll host it for free with Heroku.

We also have a new MacBook Pro we're going to set up from scratch to get this started, so we figured we'd take you through the whole process, step by step.

This is part 3: Installing and configuring Spree
  1. Install Spree (with RVM, you should not use "sudo":
    gem install spree
  2. Create the rails app:
    spree your-site-name
  3. Install extension to make spree work with Heroku:

    cd your-site-name
    script/extension install git://github.com/RSpace/spree-heroku.git

  4. Copy the .gems manifest to the root of your application (this is to work with the Heroku stack we're going to set up later):
    cp vendor/extensions/heroku/.gems ./
  5. Add this gem to the .gems file:
    aws-s3 --version '0.6.2'
  6. Install any other needed gems:
    rake gems:install
  7. Setup your SQLite3 database:
    rake db:bootstrap
  8. Start your server:
    script/server
  9. Check out your site: http://localhost:3000

That's it!

We're getting closer to having an e-commerce site on a production-grade stack. But before we get to Heroku, we have to create an Amazon Web Services account and set that up. That's next time!


Follow Me | Friend Me | Find Me
blog comments powered by Disqus