Coder Social home page Coder Social logo

trade-tariff-frontend's Introduction

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

trade-tariff-frontend's People

Contributors

matthewford avatar saulius avatar tombye avatar jabley avatar macool avatar bradwright avatar theharq avatar futurefabric avatar alext avatar alexey-klimuk avatar kushalp avatar edds avatar daibach avatar marksheldongds avatar fofr avatar maxamg avatar elliotcm avatar rusllonrails avatar jackscotti avatar vspy avatar jystewart avatar phae avatar brenetic avatar jordanhatch avatar klssmith avatar mattbostock avatar philandstuff avatar vinayvinay avatar nickstenning avatar carpela avatar

Stargazers

RannyBal avatar Gareth Isherwood avatar Julian Kühnel avatar Ben Woodward avatar

Watchers

 avatar  avatar  avatar Richard Pope avatar Rebecca Cottrell avatar Steve Laing avatar  avatar Anika Henke avatar Pramod Bansal avatar Jim Barritt avatar David Mann avatar Ryan MacGillivray avatar minglis avatar Alex Jackson avatar  avatar Pete Goddard avatar  avatar Yael avatar David Illsley avatar Jacob Ashdown avatar Lee Longmore avatar Tom avatar James Cloos avatar Mateusz Lipczynski avatar Adrian Clay avatar Lisa Scott avatar  avatar Davina Sirisena avatar Chris Blackburn avatar Mark Hurrell avatar  avatar Chris Heathcote avatar Ben Terrett avatar Sylwester Gryzio avatar  avatar Russell Davies avatar Alice Newton avatar Christopher Pugh avatar  avatar Caoimhin Graham avatar  avatar  avatar  avatar Phil B avatar Nayeema Chowdhury avatar Michael Thomas avatar Rosa Fox avatar  avatar Stephen Harker avatar  avatar Kyle MacPherson avatar Tasmin Steer avatar Rachel Smith avatar Jess Jones avatar  avatar Ana Fernandez avatar Felix Harrison avatar  avatar

trade-tariff-frontend's Issues

change the front-end code for footnote popups

We can reduce the amount of data coming over the wire by uniquing the footnotes - and on the commodity page set the footnote popup id to the code rather than a random generated id.

GET search page is now a 404

Our monitoring picked up that the GET /trade-tariff/search is now a 404 and used to be a 200. I see search has moved to a POST request - could we make it a 200 and add a simple search box on it?

Remove references to FACTER_govuk_platform

We are going to remove FACTER_govuk_platform as an environment variable. It is still referenced in router.rake at

task :register_application => :router_environment do
platform = ENV['FACTER_govuk_platform']
url = "#{@slug}.#{platform}.alphagov.co.uk"
@logger.info "Registering application..."
@router.update_application @slug, url
end

I suggest converting that to

  task :register_application => :router_environment do
    domain_name = ENV['GOVUK_APP_DOMAIN']
    url = "#{@slug}.#{domain_name}"
    @logger.info "Registering application..."
    @router.update_application @slug, url
  end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.