Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
 
 
db
 
 
doc
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

CircleCI Code Climate

Trade Tariff Frontend

Now maintained at https://github.com/bitzesty/trade-tariff-frontend

https://www.trade-tariff.service.gov.uk/trade-tariff/sections

This is the front-end application for:

This application requires the Trade Tariff Backend API to be running and the following env variable set TARIFF_API_HOST.

Running the frontend

Requires:

  • Ruby
  • Rails

Uses:

  • Memcache

Commands:

./bin/setup
foreman start

Running the test suite

To run the spec use the following command:

RAILS_ENV=test bundle exec rake

Deploying the application

We deploy to cloud foundry, so you need to have the CLI installed, and the following cf plugin installed:

Download the plugin for your os: https://github.com/contraband/autopilot/releases

chmod +x autopilot-(YOUR_OS)
cf install-plugin autopilot-(YOUR_OS)

Set the following ENV variables:

  • CF_USER
  • CF_PASSWORD
  • CF_ORG
  • CF_SPACE
  • CF_APP
  • SLACK_CHANNEL
  • SLACK_WEBHOOK

Then run

./bin/deploy
You can’t perform that action at this time.