Declare Exports Frontend Application.
You may want to point to a non-local frontend Assets server. If so then simply set an environment variable ASSETS_URL
This code is open source software licensed under the Apache 2.0 License
Project contains scalafmt plugin.
Commands for code formatting:
scalafmt # format compile sources
test:scalafmt # format test sources
sbt:scalafmt # format .sbt source
To ensure everything is formatted you can check project using commands below
scalafmt::test # check compile sources
test:scalafmt::test # check test sources
sbt:scalafmt::test # check .sbt sources
This project has a TamperMonkey (Google Chrome) or GreaseMonkey (Firefox) Auto Complete Script to help speed through the form journey.
These scripts can be found in the docs directory.
As per Exports Product Manager and CDS Stakeholders instructions, the CDS Tariff is our source of truth for any CDS codes going forward, until further instructions or until we connect with a service that provides this data for us.
There is a small Node.js project on tariff-codes-parser that allows us to automate this task. We have been informed that the most up-to-date codes can be found on the CDS Tariff.
We use the following codes:
- Country codes Last published: 1 August 2018
- Authorisation codes (3/39 in tariff) Last published: 1 August 2018
- UK Office of Exit codes (5/12 in tariff) Last published: 1 August 2018
- Document type codes (previous document page) (2/1 in tariff) Last published: 1 August 2018
- Package Type codes (6/9 in tariff) Last published: 1 August 2018
- Customs supervising office codes (5/27 in tariff) Last published: 1 August 2018
The steps required to update the code-lists:
- Install Node.js and npm on your local machine.
- Clone Exports Acceptance project, External Movements, Internal Movements and Declarations BE into the same workspace folder as this project, as we will have to update the code lists as well.
- Ensure the tariff URLs are still valid and update them on
tariff-codes.js
- Go into the Node.js project:
cd tariff-codes-parser
- Install the Node.js dependencies:
npm install
- Execute, parse and update the code lists:
node start.js
- Check the differences
git diff
and/or create a Pull Request.
Recommended future work:
- Consider moving this code to Scala