<img src=“https://travis-ci.org/iDreamOn/mymoney.svg” alt=“Build Status” /> <img src=“https://codecov.io/github/iDreamOn/mymoney/coverage.svg?branch=master” alt=“Coverage via Codecov” />
-
Configure your git
1. https://help.github.com/articles/generating-ssh-keys/
-
Install rails
1. Ubuntu: http://railsapps.github.io/installrubyonrails-ubuntu.html 2. VirtualBox: https://github.com/iDreamOn/rails-dev-box
-
Make sure you have mysql installed and running (Not necessary if using VirtualBox above)
-
Install time zone support on mysql server (Not necessary if using VirtualBox above)
Run `mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql`
-
Add rails user for mysql (Not necessary if using VirtualBox above)
mysql -uroot <<SQL GRANT ALL PRIVILEGES ON *.* to 'rails'@'localhost'; GRANT ALL PRIVILEGES ON mymoney_test.* to 'travis'@'localhost'; USE mysql; UPDATE user SET PASSWORD=PASSWORD("rails") WHERE User='rails'; flush privileges; quit SQL
-
Clone the project
-
cd into money
-
Run “bundle install“ to install missing gems.
-
Run “rake db:create“
-
Run “rake db:migrate:reset“
-
Run “rake db:seed“
-
Run “rails s -b 0.0.0.0“
-
Browse “0.0.0.0:3000“
-
You should be able to login using the default dev account:
username: dev password: devdev
If you can login, run “rake db:restore“ and try again.