No commit activity in last 3 years
No release in over 3 years
Rails Marketplace.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Project Readme

Rails Marketplace

Rails Marketplace is a project to build an ecommerce marketplace engine.

Installation Guideline

Add to current project or create new project: rails new --project

Step 1: Add related gem files and install

a. add to Gemfile
gem 'rails_marketplace'

b. bundle install

Step 2: Migration database from rails_marketplace and install

a. rake rails_marketplace:install:migrations
b. rake db:migrate

Step 3: create product image uploader

a. rails generate uploader ProductImages
b. add to app/uploaders/product_images_uploader.rb

  include CarrierWave::MiniMagick

  version :large do
    process resize_to_fit: [350, 500]
  end

  version :small do
    process resize_to_fit: [130, 160]
  end

  version :thumb do
    process resize_and_pad: [80, 80, "#ffffff"]
  end

Step 4: Precompile related css and js

a. add to `app/assets/config/manifest.js`
//= link rails_marketplace/application.css
//= link rails_marketplace/application.js 

Step 5: Mount to route and start server

a. add to config/routes.rb
mount RailsMarketplace::Engine, at: "/"
b. rails s
c. go to localhost:3000