Skip to content

hmrc/agent-registration-frontend

Repository files navigation

Overview agent-registration-frontend

TODO This is a new service. No overview yet.

Running the Service

To start the service, use the following commands:

  • sbt runTestOnly - this enables extra test endpoints
  • sbt run to launch the service normally.

After starting the service, open in browser: `http://localhost:22201/agent-registration

Ensure that all dependent applications, including MongoDB and other microservices, are also running. To start/stop these dependent services, use the Service Manager commands:

sm2 --start AGENT_REGISTRATION_ALL \
&& sm2 -s
sm2 -stop-all \
&& sm2 -s

Project Setup in IntelliJ

When importing a project into IntelliJ IDEA, it is recommended to configure your setup as follows to optimize the development process:

  1. SBT Shell Integration: Utilize the sbt shell for project reloads and builds. This integration automates project discovery and reduces issues when running individual tests from the IDE.

  2. Enable Debugging: Ensure that the "Enable debugging" option is selected. This allows you to set breakpoints and use the debugger to troubleshoot and fine-tune your code.

  3. Library and SBT Sources: For those working on SBT project definitions, make sure to include "library sources" and "sbt sources." These settings enhance code navigation and comprehension by providing access to the underlying SBT and library code.

Here is a visual guide to assist you in setting up: img.png

Project specific sbt commands

Turn off strict building

In sbt command in intellij:

sbt> relax

This will turn off strict building for this sbt session. When you restart it, or you build on jenkins, this will be turned on.

Run with test only endpoints

sbt> runTestOnly

Run tests before check in

sbt> clean test

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5