The backend service which manages case data for the Advance Tariff Rulings services.
- Service Manager 2 installed
- SBT Version
>=1.xinstalled - MongoDB version
>=6.0installed and running on port 27017 - Localstack installed and running on port 4572
- Create an S3 bucket in localstack by using
awslocal s3 mb s3://digital-tariffs-localwithin the localstack container
The easiest way to run MongoDB and Localstack for local development is to use Docker.
> docker run --restart unless-stopped -d -p 27017-27019:27017-27019 --name mongodb mongo:6.0
> 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
Launch dependencies using sm2 --start DIGITAL_TARIFFS
If you want to run it locally:
sm2 --stop BINDING_TARIFF_CLASSIFICATIONsbt run
This application runs on port 9580.
Run ./run_all_tests.sh. This also performs coverage testing if all tests pass.
This code is open source software licensed under the Apache 2.0 License.