winton / lighthouse_db

Lighthouse API -> Database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##LighthouseDb

Build Status Code Climate

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

Set up the Lighthouse user

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.

View Lighthouse tickets

###Running Specs

RAILS_ENV=test rake db:migrate  
LIGHTHOUSE_TOKEN='' LIGHTHOUSE_NAMESPACE='' LIGHTHOUSE_USER_ID='' rspec spec

About

Lighthouse API -> Database


Languages

Language:Ruby 65.2%Language:CSS 32.1%Language:Shell 1.2%Language:CoffeeScript 0.8%Language:JavaScript 0.6%