##LighthouseDb
Lighthouse API -> DB
http://cl.ly/image/2y0p0w0B0Q2V
###Install
git clone git@github.com:winton/lighthouse_db.git
cd lighthouse_db
bundle
cp config/database.example.yml config/database.yml
rake db:migrate
rails s
###Download Lighthouse Data
rails c
ActiveRecord::Base.logger = Logger.new File.open('log/development.log', 'a')
TicketsFromApi.new(LighthouseUser.token_user).update
IssuesFromApi.new(GithubUser.token_user).update
Subsequent runs will only download newly updated tickets.
###Running Specs
RAILS_ENV=test rake db:migrate
LIGHTHOUSE_TOKEN='' LIGHTHOUSE_NAMESPACE='' LIGHTHOUSE_USER_ID='' rspec spec