- Clone project
- Setup the database
$ bin/rails db:setup
- Install Embulk - instructions here
- Install Embulk dependencies
$ cd lib/embulk/embulk_bundle && embulk bundle install
$ bin/rails bolsa_familia:infrastructure
$ bin/rails "bolsa_familia:download[month, year]"
$ bin/rails "bolsa_familia:download_all"
$ bin/rails "bolsa_familia:import[month, year]"
$ bin/rails "bolsa_familia:download_and_import[month, year]"
- Install the httrack
- Run the command
$ httrack --list public/crawler_urls.txt --depth=0 --max-time=600000000 --sockets=1 --timeout=600000000 --retries=1
Top 50 "bolsa familia" payments in the current year
/v1/bolsa_familia/people/ranking
Top 50 "bolsa familia" payments in the current year and state
/v1/bolsa_familia/people/ranking?state=sp
Top 50 "bolsa familia" payments in the informed year
/v1/bolsa_familia/people/ranking?year=YYYY
Top 50 "bolsa familia" payments in the informed year and state
/v1/bolsa_familia/people/ranking?year=YYYY&state=sp
Top "bolsa familia" payments grouped by state in the current year
/v1/bolsa_familia/states/ranking
Top "bolsa familia" payments grouped by state in the informed year
/v1/bolsa_familia/states/ranking?year=YYYY
It is generated by Jekyll after each server initialization. The source is in site
folder and
the generated files are created in public/site
folder, so the site is available in
http://brasil-sincero-url/site
.