This is a frontend microservice for handling vehicle import notifications to HMRC.
This service connects to the nova-imports backend microservice.
Using Service Manager, sm2 uses the NOVA_IMPORTS_ALL profile to start all services with the latest tagged releases.
sm2 --start NOVA_IMPORTS_ALLRun sm2 -s to check what services are running.
Run the sm2 command below to start all the services required for the NoVA frontend service.
sm2 --start NOVA_IMPORTS_ALLRun the sm2 command below to stop the NoVA frontend service.
sm2 --stop NOVA_IMPORTS_NOTIFICATION_FRONTENDRun the command below to start the NoVA frontend service locally.
Note: this service runs on port 10300 by default
sbt run -Dapplication.router=testOnlyDoNotUseInAppConf.Routes- Go to
http://localhost:9949/auth-login-stub/gg-sign-in - Set the Redirect URL to
http://localhost:10300/nova-imports/<page-path> - Set the Affinity Group to
Individual,Organisation, orAgent - Click Submit — you will be authenticated and redirected to the service
Most pages require session data (user answers) to be present. A test-only session editor is available when running with test-only routes:
- Log in via the auth-login-stub with the Redirect URL set to
http://localhost:10300/nova-imports/test-only/session - Enter session data as JSON (e.g.
{}for an empty session) and click Save - Navigate to the page you want to test — session data will now be available
sbt clean coverage test it/test coverageReportThis will also generate a coverage report.
This service uses MongoDB to persist user answers.
This code is open source software licensed under the Apache 2.0 License.