Skip to content

DruRly/pulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##1. Bundle

git clone ...
cd pulse
bundle

##2. Add API Key

###Create config/wtp.yml

api_key: "your api key"

##3. Setup Database


#Create Db
rake db:migrate

#Open Console rails console

#Pull petitions and issues from API Petition.pull_all

#Create mock signatures Signature.create_mocks(180000)

#Get metadata from signatures Signature.store_dates

##4. Start Server

rails server

##TODO ###Seed database with real signatures The WTP team mentioned that a databse dump will be available soon. This could be used to seed the database. Cron jobs can then be used to pull new data on a regular basis. ###Enable Filtering Filtering params are being generated. The controller should use these params to filter petitions by issue. ###Add days left before 30-day deadline Use the petition creation date to determine how long a petition has left to reach the threshold. Display these values under "Near Threshold"