This code was deployed to heroku https://golf-products-test.herokuapp.com/
- API documentation - https://golf-products-test.herokuapp.com/api_documentation
- Products view for API - https://golf-products-test.herokuapp.com/
- Calculator - https://golf-products-test.herokuapp.com/calculator
- Populate the DB with the products.json file
rake db:seed
See requirements below if you have troubles.
rake db:create # create database
rake db:seed # add seed data to database
rails s # for run server
Run tests
rspec
Output:
...................................................
Finished in 1.29 seconds (files took 5.43 seconds to load)
51 examples, 0 failures
Coverage report generated for Unit Tests to /Users/bond/Projects/golf_bags/coverage. 26 / 26 LOC (100.0%) covered.
- Ruby 2.3.0
- Ruby on Rails 5.0
- Ember.js 2.6
- MongoDB
- Mongoid
- Grape
- Swagger
- Rspec
brew update
Node.js
brew install node
Ember-CLI and Bower
npm install -g ember-cli bower
MongoDB
brew install mongodb
RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
Ruby
rvm install 2.3.0
rvm use 2.3.0
Bundler
gem install bundler
cd /path/to/cloned/project
bundle install