Git Product home page Git Product logo

hmrc.binding-tariff-classification's Introduction

binding-tariff-classification

The backend service which manages case data for the Advance Tariff Rulings services.

Running

To run this Service you will need:
  1. Service Manager installed
  2. SBT Version >=1.x installed
  3. MongoDB version >=3.6 installed and running on port 27017
  4. Localstack installed and running on port 4572
  5. Create an S3 bucket in localstack by using awslocal s3 mb s3://digital-tariffs-local within the localstack container

The easiest way to run MongoDB and Localstack for local development is to use Docker.

To run MongoDB
> docker run --restart unless-stopped -d -p 27017-27019:27017-27019 --name mongodb mongo:3.6.13
To run Localstack and create the S3 bucket
> docker run -d --restart unless-stopped --name localstack -e SERVICES=s3 -p4572:4566 -p8080:8080 localstack/localstack
> docker exec -it localstack bash
> awslocal s3 mb s3://digital-tariffs-local
> exit

Starting the application:

  1. Launch dependencies using sm --start DIGITAL_TARIFF_DEPS -r
  2. Start the filestore service binding-tariff-filestore using sm --start BINDING_TARIFF_FILESTORE -r

Use sbt run to boot the app or run it with Service Manager using sm --start BINDING_TARIFF_CLASSIFICATION -r.

This application runs on port 9580.

You can also run the DIGITAL_TARIFFS profile using sm --start DIGITAL_TARIFFS -r and then stop the Service Manager instance of this service using sm --stop BINDING_TARIFF_CLASSIFICATION before running with sbt.

Testing

Run ./run_all_tests.sh. This also runs Scalastyle and does coverage testing.

or sbt test it:test to run the tests only.

License

This code is open source software licensed under the Apache 2.0 License.

hmrc.binding-tariff-classification's People

Contributors

abhijeetardale avatar ansahdavid avatar colesadam avatar davidgregory084 avatar ed0906 avatar emilia-trendafilova avatar frikit avatar gokyo avatar gorkemunsal avatar hmrc-web-operations avatar jumpertester avatar kuldeepwadhwa9 avatar oc-pomaroff avatar oliwiakot avatar periklas avatar pllaurado avatar retroredge avatar shahzadbhatti1 avatar stevesugden avatar susan-badel avatar tipperba avatar tomasz-rosiek avatar vajarova avatar warrenskiwork1979 avatar yasaracar avatar

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.