Barebones of E-Commerce written on top of Ruby on Rails framework
0.5.7
git clone https://github.com/mertyildiran/SCOR.git
cd SCOR/
bundle install
rake db:migrate
rake db:seed
rails server
Visit: https://localhost:3000/
Create your first user using this form: https://localhost:3000/users/sign_up
After that, set the first user as the admin:
rails console
u = User.first
u.admin = true
u.save
exit
Make sure you are logged in as admin and visit: https://localhost:3000/admin
Note: If you are not logged in to the system you will get an exception which is extremely normal.
Now you are able to grant whoever you want with Administrative Privileges by marking as Admin: https://localhost:3000/admin/user
Write current state of database to seed:
rake db:seed:dump
After that, whenever you want autoload your dump:
rake db:seed
rake db:drop:all
rake db:create:all
rake db:migrate
rake db:test:prepare
rake test:units
rake test:functionals
rake test:integration
rake test:benchmark
rake test:profile
Alternatively, run all unit, functional and integration tests with profiling and benchmarking:
rake test
CAUTION: Warnings can turn stdout to a mess. On that case use RUBYOPT=W0
option. Example: rake test:benchmark RUBYOPT=W0