Bcms_store_products is a project mainly written in RUBY and JAVASCRIPT, based on the LGPL-3.0 license.
A shop module for BrowserCMS
A module to create a webshop in BrowserCMS
These instructions are adapted from those found at http://www.browsercms.org/doc/guides/html/installing_modules.html.
To install this module, do the following:
This assumes you have the latest copy of the code from github on your machine.
gem build bcms_store_products.gemspec
sudo gem install bcms_store_products-1.0.0.gem
At this point, the Store Products gem should be installed as a gem on your system, and can be added to your projects.
In your BrowserCMS application, do the following steps.
config.gem 'browsercms'
# Add this next line after the browsercms gem
config.gem 'bcms_store_products'
# Add this route. It must be before the core browser_cms route.
map.routes_for_bcms_store_products
map.routes_for_browser_cms
From the root directory of your cms project, run:
script/generate browser_cms
This will copy all the necessary views and migrations from the gems into your local project. You should messages checking to see if files already exist or were created.
This module will add new data types, like content blocks, so you need to run the migrations to add them to your project.
rake db:migrate
rake db:seed # Optionally create a products section and some pages
script/server
Cucumber and rspec are used to verify the behavior of the system.
rake
rm -f db/test.sqlite3