Git Product home page Git Product logo

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 2 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 sm2 --start DIGITAL_TARIFFS_DEPS
  2. Start the filestore service binding-tariff-filestore using sm2 --start BINDING_TARIFF_FILESTORE

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

This application runs on port 9580.

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

Testing

Run ./run_all_tests.sh. This also performs coverage testing if all tests pass.

License

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

binding-tariff-classification's People

Contributors

ed0906 avatar gokyo avatar oc-pomaroff avatar davidgregory084 avatar periklas avatar gorkemunsal avatar oliwiakot avatar pllaurado avatar stevesugden avatar emilia-trendafilova avatar frikit avatar colesadam avatar retroredge avatar kuldeepwadhwa9 avatar susan-badel avatar gastonracui avatar yangwong9664 avatar nboaram avatar jumpertester avatar vajarova avatar warrenskiwork1979 avatar mywyau avatar hmrc-web-operations avatar tipperba avatar edcope avatar lmugnai avatar ansahdavid avatar ryandac avatar anburoach avatar shahzadbhatti1 avatar

Stargazers

spamegg avatar

Watchers

Andrew Heald avatar  avatar Armin Keyvanloo avatar Ian Mc Shane avatar James Cloos avatar Viv Richards avatar  avatar  avatar  avatar Guy Whitfield avatar Sean Ellis avatar shiromi avatar  avatar  avatar Ashwini Rudrappa avatar  avatar Les Jones avatar  avatar  avatar  avatar Reeshi Shah avatar Sam Holyhead avatar Mark Wright avatar  avatar  avatar  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.