Please create a ticket on github if you have issues. They will be addressed ASAP.
This is a Rails e-commerce platform. Stripe Ecommerce is a Rails 4 application with the intent to allow developers to create an ecommerce solution easily. This solution includes an Admin for Purchase Orders, Product creation, Shipments, Fulfillment and creating Orders. There is a minimal customer facing shopping cart understanding that this will be customized. The cart allows you to track your customers' cart history and includes a double entry accounting system.
The project has Solr searching, Compass and Zurb Foundation for CSS and uses jQuery. The gem list is quite large and the project still has a large wish list. In spite of that, it is currently the most complete Rails solution, and it will only get better.
Please use Ruby 2.0 and enjoy Rails 4.0.
Stripe Ecommerce is designed so that if you understand Rails you will understand Stripe_commerce. There is nothing in this project besides what you might see in a normal Rails application. If you don't like something, you are free to just change it like you would in any other Rails app.
Contributors are welcome! We will always need help with UI, documentation, and code, so feel free to pitch in. To get started, simply fork this repo, make any changes (big or small), and create a pull request.
Install RVM with Ruby 2.0.0. If you have 2.0.0 on your system you're good to go. Please refer to the RVM site for more details.
database.yml for your setup.
cp config/database.yml.sqlite3 config/database.yml.
cp config/database.yml.mysql config/database.yml and update your username/password.
If you are using the mysql dmg file to install mysql you will need to edit your ~/.bash_profile and include this:
rake secret and copy/paste the output as
gem install bundler bundle install rake db:create:all rake db:migrate db:seed RAILS_ENV=test rake db:test:prepare
Once everything is set up, start the server with
rails server and direct your web browser to localhost:3000/admin/overviews.
Write down the username/password (these are only shown once) and follow the directions.
Most users are using Amazon S3 or Heroku. Thus we have decided to have a setup easy to get your site up and running as quickly as possible in this production environment. Hence you should add the following ENV variables:
FOG_DIRECTORY => your bucket on AWS AWS_ACCESS_KEY_ID => your access key on AWS AWS_ACCESS_KEY_ID => your secret key on AWS
export FOG_DIRECTORY=xxxxxxxxxxxxxxx export AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx export AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
heroku config:add FOG_DIRECTORY=xxxxxxxxxxxxxxx heroku config:add AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx heroku config:add AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx heroku labs:enable user-env-compile -a myapp
$ wget http://redis.googlecode.com/files/redis-2.6.12.tar.gz $ tar xzf redis-2.6.12.tar.gz $ cd redis-2.6.12 $ make
$ curl -O http://redis.googlecode.com/files/redis-2.6.12.tar.gz $ tar xzf redis-2.6.12.tar.gz $ cd redis-2.6.12 $ make
or with homebrew $ brew install redis
add redis to your PATH (NOTE: if you installed via homebrew, it will already be in your PATH):
Install memcached: You can install from source, or via homebrew
$ brew install memcached
The .env file should look like:
FOG_DIRECTORY=xxxxxxxxxxxxxxx AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx AWS_SECRET_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ask the project manager for the values to fill in xxxxxxxxxxxxxxx
Processes are managed by the foreman gem.
* First, copy the Procfile.dev.example to Procfile.dev * Then Make any specific local machine changes (executable paths, ports, etc) * then do $ forman start -f Procfile.dev
If installing rMagick on OS X 10.8 and using Homebrew to install ImageMagick, you will need to symlink across some files or rMagick will not be able to build.
Do the following in the case of a Homebrew installed ImageMagick(and homebrew had issues):
* cd /usr/local/Cellar/imagemagick/6.8.0-10/lib * ln -s libMagick++-Q16.7.dylib libMagick++.dylib * ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib * ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
If you would like to read the docs, you can generate them with the following command:
yardoc --no-private --protected app/models/*.rb
config/settings.yml and change the encryption key and paypal/auth.net information.
You can also change
config/settings.yml until you get your real info.
Paperclip will throw errors if not configured correctly.
You will need to find out where Imagemagick is installed.
which identify in the terminal and set
equal to that path in
Paperclip.options[:command_path] = "/usr/local/bin"
Paperclip.options[:command_path] = "/usr/bin"
While optional, for a speedy site, using memcached is a good idea.
Install memcached. If you're on a Mac, the easiest way to install Memcached is to use homebrew:
brew install memcached memcached -vv
Resque admin is accessible at /resque.
To run ensure that resque jobs run locally use foreman to start the server.
Stripe_commerce was created by David Henner. Contributors.
Shipping categories are categories based off price:
you might have two shipping categories (light items) & (heavy items)