This is the new gambling-landp-frontend repository
This project includes a pre-push hook that checks code formatting with scalafmt before pushing.
To activate it, run once after cloning:
If the check fails, format your code with sbt scalafmtAll and try again.
Service Manager: sm2 --start DASS_GAMBLING_ALL
To run all tests and coverage: ./run_all_tests.sh
To start the server locally: sbt run
To check coverage: sbt clean coverage test it/test coverageReport
To enable test-only routes when running locally, start the server with: sbt 'run -Dplay.http.router=testOnlyDoNotUseInAppConf.Routes 10401'
The project uses domain-based organisation. Each new page should be placed in the appropriate domain folder:
app/
├── controllers/[domain]/ # e.g., monthlyreturns/
├── models/[domain]/ # e.g., monthlyreturns/
├── views/[domain]/ # e.g., monthlyreturns/
├── forms/[domain]/ # e.g., monthlyreturns/
├── pages/[domain]/ # e.g., monthlyreturns/
└── viewmodels/checkAnswers/[domain]/
test/
├── controllers/[domain]/
├── models/[domain]/
├── forms/[domain]/
└── views/[domain]/
GET /there-is-a-problem-with-the-service controllers.SystemErrorController.onPageLoad()
Message key (messages.en):
monthlyreturns.inactivityRequest.title = Do you want to submit an inactivity request?This code is open source software licensed under the Apache 2.0 License.