Repository: trade-tariff-duty-calculator
README
Prerequisites
- Ruby 3.2
- Rails 7.0
- NodeJS & Yarn
Make sure you install and enable all pre-commit hooks https://pre-commit.com/
Setting up the app in development
Make sure you install and enable all pre-commit hooks https://pre-commit.com/
- Run
bin/setup
- Followed by
bin/rails s
- Navigate to http://localhost:3002
Whats included?
- Rails 7.0 with Webpacker
- GOV.UK Frontend
- RSpec
- Dotenv (managing environment variables)
Running specs
bundle exec rspec
Running locally in docker-compose
You’ll need:
- Working Docker environment
- Docker-compose installed
Run
- Clone this repo and change to it’s root directory
- Run
docker-compose up
- Open your browser to
http://0.0.0.0:3000/duty-calculator/ping
to verify it’s running.
- Start the journey with the commodity ID you want to test
(It uses the dev environment API by default)
e.g http://0.0.0.0:3000/duty-calculator/uk/9620001000/import-date