Skip to content

hmrc/disa-registration-frontend

Repository files navigation

disa-registration-frontend

App Description to be confirmed

Before running the app

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 rs0

Reference instructions for setting up docker and running mongodb.

Running the app

Service manager

The whole service can be started with:

sm2 --start DISA_REGISTRATION_ALL

Locally

sbt run

You can then query the app to ensure it is working with the following command:

# other useful commands
sbt clean

sbt reload

sbt compile

Running the test suite

To run the unit tests:

sbt test

To run the integration tests:

sbt it/test

Before you commit

This 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 scalafmt

Further documentation

You can view further information regarding this service via our service guide.

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

 
 
 

Contributors