App Description to be confirmed
This repository relies on having mongodb running locally. You can start it with:
# first check to see if mongo is already running
docker ps | grep mongodb
# if not, start it
docker run --restart unless-stopped --name mongodb -p 27017:27017 -d percona/percona-server-mongodb:7.0 --replSet rs0Reference instructions for setting up docker and running mongodb.
The whole service can be started with:
sm2 --start DISA_REGISTRATION_ALLsbt runYou can then query the app to ensure it is working with the following command:
# other useful commands
sbt clean
sbt reload
sbt compileTo run the unit tests:
sbt testTo run the integration tests:
sbt it/testThis service leverages scalaFmt to ensure that the code is formatted correctly.
Before you commit, please run the following commands to check that the code is formatted correctly:
# checks all source and sbt files are correctly formatted
sbt prePrChecks
# if checks fail, you can format with the following commands
# formats all source files
sbt scalafmtAll
# formats all sbt files
sbt scalafmtSbt
# formats just the main source files (excludes test and configuration files)
sbt scalafmtYou can view further information regarding this service via our service guide.
This code is open source software licensed under the Apache 2.0 License.