Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lrjbrual/19e7d5839b4c853461528ddadf5b4e1e to your computer and use it in GitHub Desktop.
Save lrjbrual/19e7d5839b4c853461528ddadf5b4e1e to your computer and use it in GitHub Desktop.
How to:
1. Generate in command line: rails new -T --database postgresql capstone1asyourprojectname
2. rails db:create
3. rails db:migrate
4. add to your gem file
gem 'spree', '~> 3.2.0.rc1'
gem 'spree_auth_devise', '~> 3.2.0.beta'
gem 'spree_gateway', '~> 3.2.0.beta'
5. run bundle update
6. then copy paste these in to your command line:
bundle exec rake railties:install:migrations
bundle exec rake db:migrate
bundle exec rake db:seed
bundle exec rake spree_sample:load
during the installation of spree it will ask email and password to use in admin.
To clone your project I made, in able to use in your local machine: note: if you don't have yet the git, kindly install first the git search to google the installer. then register to github.com
then:
1. in your command line type: git clone git@github.com:lrjbrual/studentcapstone.git
2. go to your file studentcapstone, or whatsoever name you made in here. then type: bundle update
3. rails db:create
4. rails db:migrate
5. in your view folder I created the spree folder to call the spree methods in able you to recode the open source code of Ruby on Rails using spree methods and library.
6. in your controller you will find it change and I added partials which is your navbar to call the pages, and to modify the layout
of css you can use assets/stylesheet/application.css but you can use the vendor of spree frontend/all.css you will find my one class I made.
7. Run the rails server and you will see how its look like. try to upload images using admin.
Good luck!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment