This is a frontend application currently serving the purpose of updating the stored customs contact email address.
Path | Description |
---|---|
GET /manage-email-cds/start | Start of journey for managing CDS email |
You'll need Service Manager to develop locally.
What's running?
sm -s
Start the required development services (make sure your service-manager-config folder is up to date)
sm --start CUSTOMS_EMAIL_FRONTEND_DEP -f
Stop all running services
sm --stop CUSTOMS_EMAIL_FRONTEND_DEP -f
Once these services are running, use the following command to start the service sbt "run 9898"
To imitate the checks ran when building run (in the root directory)
./precheck.sh
To start the app using SBT simply use the command
sbt run
from the terminal, visit this link to see the app running.
In a separate terminal you will need to run this command
sm --start CUSTOMS_EMAIL_FRONTEND_ALL -r
You'll need to use a Government Gateway account with CDS enrolment to access most pages as they are authenticated. So login via the auth-login-stub first to proceed with a journey.
If another MDTP frontend service wants to use customs-email-frontend for email updating or verification then you will need to
- add your service 'name' and 'continueUrl' keys into the application.conf
- define the link text offered to the user to return to your service in the message properties files (please note the message property key's suffix should match your service 'name' value defined in the application.conf file).
- add new tests to
unit.views.EmailConfirmedViewSpec
andunit.config.AppConfigSpec
- create a new branch and raise a pull request once you have finished.
Here is an example for the customs-finance service
application.conf
referrer-services : {
name = "customs-finance",
continueUrl = "/customs/payment-records"
}
messages.en
customs.emailfrontend.email-confirmed.redirect.info.customs-finance=You can now continue to <a href="{0}">Get your import VAT and duty adjustment statements.</a>
Please make sure that you update the message keys for both english and welsh languages!
To provide a link from your service to the customs-email-frontend you need to create a url with the following pattern:
/manage-email-cds/service/:service-name/
Where :service-name
equals your service 'name' value defined in application.conf.
So for example for customs-finance the url would be http://localhost:9898/manage-email-cds/service/customs-finance
This code is open source software licensed under the Apache 2.0 License.
This is a sbt command alias specific to this project. It will run a scala style check, run unit tests, run integration tests and produce a coverage report:
sbt runAllChecks