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
tag: release_466

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

README.md

TradeTariffBackend

The API backend for TradeTariffFrontend application

If using gov.uk development puppet repo

Ensure that you have pulled the latest version of the development repo. Run the bootstrap command.

Dependencies (OS X using Homebrew)

  1. ElasticSearch & MySQL

    brew install elasticsearch
    
    brew install mysql
    
  2. Ruby 1.9.3

Setup TradeTariffBackend

  1. Create database

    bundle exec rake db:create
    
  2. Load database snapshot or perform importing

2.1. Import EU TARIC files

Download and extract the TARIC snapshot files from the 5th Jun 2012 from https://github.com/downloads/alphagov/trade-tariff-backend/taric-initial-load.tar.gz to the tmp folder then run the following commands:

bundle exec rake db:migrate

bundle exec rake importer:taric:import TARGET=tmp/OBEXTACTEN.xml

bundle exec rake importer:taric:import TARGET=tmp/OBEXTACT.xml

2.2. Download the db snapshot (TODO)

  1. Load Sections, Section notes, Chapter notes and other tariff data

    bundle exec rake tariff:install
    
  2. Index on ElasticSearch

    bundle exec rake tariff:reindex
    

Run TradeTariffBackend

./startup.sh

TODO

  • Instructions on how to run the CHIEF importers
  • Timezone config
Something went wrong with that request. Please try again.