github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

potionfactory / potionstore

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 222
    • 20
  • Source
  • Commits
  • Network (20)
  • Issues (0)
  • Downloads (1)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.
  cancel

http://www.potionfactory.com/potionstore

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Merge branch 'master' of hiro:/git/potionstore 
andypotion (author)
Sat Sep 26 09:12:30 -0700 2009
commit  7edc33aa2704bee219cfa625e98082bbad329bf1
tree    f6d73682c847f907e850c6be7b8687a66f423454
parent  2eb75a2becc1a113a140119a2899beefe0ee8b7f parent  9f6062b551c04f7e3da8255f1a28d87ef62bbf7a
potionstore /
name age
history
message
file .gitignore Sat Sep 29 17:41:47 -0700 2007 modified admin forms to use some resource short... [andykim78]
file LICENSE Mon Mar 10 19:33:31 -0700 2008 Small changes to readme and license [andypotion]
file README.markdown Tue May 05 20:31:51 -0700 2009 Fixed up instructions to match the current PayP... [andypotion]
file Rakefile Sat Jun 23 22:21:58 -0700 2007 Initial import of version 0.1.0 git-svn-id: h... [andykim78]
directory app/ Thu May 21 11:53:00 -0700 2009 Get the parsed first and last names when gettin... [andypotion]
directory config/ Sat Sep 26 09:12:30 -0700 2009 Merge branch 'master' of hiro:/git/potionstore [andypotion]
directory db/ Wed Jan 09 02:25:44 -0800 2008 Brian's Rails 2 patch applied [andypotion]
directory doc/ Sat Jun 23 22:21:58 -0700 2007 Initial import of version 0.1.0 git-svn-id: h... [andykim78]
directory lib/ Sat Jun 23 22:21:58 -0700 2007 Initial import of version 0.1.0 git-svn-id: h... [andykim78]
directory public/ Wed Mar 25 19:38:32 -0700 2009 Loading jquery.validate.js separate from local ... [andypotion]
directory script/ Thu Jun 26 23:54:57 -0700 2008 Initial changes for Rails 2.1 compatibility [andypotion]
directory test/ Wed Dec 17 17:34:55 -0800 2008 Refactored out country mapping into a YML file ... [andypotion]
directory vendor/ Wed Jan 07 14:21:42 -0800 2009 Updated exception notification plugin to work w... [andypotion]
README.markdown

Welcome to Potion Store

Features:

  • PayPal Website Payments Pro support
  • PayPal Express Checkout support
  • Google Checkout support
  • Administration interface with some simple sales charts
  • Coupons
  • Send lost license page (http://mycompany.com/store/lost_license)
  • Google Analytics e-commerce transaction tracking support for PayPal and credit card orders

Dependencies

  • Rails 2.1 or higher.
  • PostgreSQL or MySQL

Installation

This is a brief outline of the steps required to get the development environment of Potion Store up and running on your local machine.

  • Edit the following config files to suit your needs

  • config/store.yml

  • config/paypal.yml
  • config/google_checkout.yml

  • Set session store secret Edit config/environment.rb and modify the config.action_controller.session setting

  • Setup database

    • Install Postgresql or MySQL if you haven't
    • Create the store_development database. Make sure to set the encoding of the database to UTF8. I recommend pgAdmin for Postgresql newcomers.
    • Edit config/database.yml
    • run "rake db:migrate" to create the database schema
  • Run script/server and test through http://localhost:3000/store and http://localhost:3000/admin

  • Replace the default license key generator in lib/licensekey.rb with your own

  • If you are setting up Google Checkout, log into your Google Checkout account (sandbox or live), go to Settings->Integration and put in your URL that corresponds to the following:

https://secure.potionfactory.com/store/notification/gcheckout

That is the URL that Google uses to make callbacks. If you don't set this up, your customers will not get their orders delivered by email.

Debugging

  1. gem install ruby-debug
  2. Put 'debugger' where you want to break in your source code
  3. Start the app with 'script/server --debugger' to enable breakpoints

Final Notes

I'd appreciate it if you kept the "Powered by Potion Store" link in the footer. It'll help more developers find the project.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server