TODO This is a new service. No overview yet.
To start the service, use the following commands:
sbt runTestOnly
- this enables extra test endpointssbt 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
When importing a project into IntelliJ IDEA, it is recommended to configure your setup as follows to optimize the development process:
-
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.
-
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.
-
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:
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.
sbt> runTestOnly
sbt> clean test
This code is open source software licensed under the Apache 2.0 License.