GENERAL INSTRUCTIONS
- for each change to db, make the corresponding change to the active admin panel
- run tests! (bundle exec rspec spec/) before each push to make sure you havent broken anything (I will run the tests too)
- If you have access to heroku, run the migration after each push (wait 2 minutes for app to deploy automatically)
- UPDATE API documentation every time you make a change!
Admin: admin@example.com / 1q2w3e4r
User: user@example.com / 1q2w3e4r
Ruby installation on Ubuntu based distibutions much more painless than under ReadHat based
It's better to use rbenv, in case of any issues see rbenv/rbenv.
Then install Ruby 2.2.4
rbenv install 2.2.4
Disable gem documentation auto installing
echo 'gem: --no-document' >> ~/.gemrc
git clone git@github.com:cracadumi/canopeez-api.git
cd canopeez-api
bundle install
If bundle install
fails you probably need to install additional system dependancies manually (it depends on you default installed system packages like Node.js, kernel headers, libxml, etc.). After installing it run bundle install
again until you will get message Your bundle is complete!
bundle exec rake db:migrate
bundle exec rake db:seed