Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Enabling the population and distribution via API of UK Customs tariffs and duties
Ruby Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
lib
public
script
spec
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
jenkins.sh
startup.sh

README.md

UKTariffWebApp

An API back end for UK Trade Tariff web app.

Dependencies

  1. ElasticSearch (Mac OS X using Homebrew):

    brew install elasticsearch
    

Local install/run instructions

  1. Install repo see http://source.android.com/source/downloading.html#installing-repo :

    brew intall repo 
    
  2. Run repo commands

    mkdir gds-tariff
    cd gds-tariff
    repo init -u git@github.com:alphagov/UKTradeTariff.git -b manifest
    repo sync
    
  3. Setup the database

Then perform scraping see instructions over here https://github.com/alphagov/TariffScraper or load a pre scraped mongodb dump.

  1. Run UKTradeTariff:

    ./startup.sh
    

Useful commands:

  • Drop index

    bundle exec rake tire:index:drop INDEX='commodities'
    
  • Reindex

    bundle exec rake environment tire:import CLASS='Commodity'
    
  • Sync all repos

    repo sync
    
Something went wrong with that request. Please try again.