Welcome to Harvester, a service which fetch data from HarvestApp and have a simple API to get data out. This is so much
faster than the actual HarvestApp API since everything is stored locally.
When it comes to installing Harvester you will need to clone the repository from GitHub.
git clone https://github.com/reload/harvester.git
And install Harvester with composer.
If you don't have Composer yet, download it following the instructions on
http://getcomposer.org/ or just run the following command:
curl -s http://getcomposer.org/installer | php
Then, install the application:
cd harvester/ php composer.phar install
Composer will install Harvester and all its dependencies. And you will need to configure database and the system.
Install the database
Import the database schema
Setup your apache/nginx virtualhost, and a few urls is now available
For the HarvestApp API fetcher to work you need to configure the API info in app/config/
There is a commmand line command available for fetching data from the HarvestApp API.
This could be executed from crontab
To see the command
app/console help harvester:fetch
To run the command without parameters, will fetch everything from Harvest (could tak several minutes)
To fetch updated data from this month
app/console harvester:fetch `date "+%Y%m01"`
To fetch that has been updated since yesterday
app/console harvester:fetch --updated-yesterday
To delete entries and repopulate within a given timespan
app/console harvester:refresh `date "+%Y%m01"`
To delete entries and repopulate within a static amount of days
app/console harvester:refresh --days=30