This is the Backend repository for the Crypto Asset Reporting Framework (CARF) team's file upload journey.
- REST API endpoints for file upload data
- Data retrieval from MongoDB
- Integration with HMRC downstream services (ETMP, DES) and audit integration
- Processes file upload submission
Prerequisites:
- Java 21
- SBT
- MongoDB
- Service Manager
Commands:
Start CARF services in service manager. (frontend, backend, any other services needed to run locally)
sm2 --start CARF_ALL
Stop this service from service manager.
sm2 --stop CARF_REPORTING
Run CARF_REPORTING locally using sbt to test dev changes.
sbt run
sm2 --start CARF_ALL
sm2 --stop CARF_REPORTING
Starts service locally with test-only routes enabled.
sbt "run -Dapplication.router=testOnlyDoNotUseInAppConf.Routes"
Service manager: CARF_ALL
Port: 17005
Staging: https://www.staging.tax.service.gov.uk/send-a-cryptoasset-report
TO BE ADDED
Run unit tests:
sbt test
Run Integration Tests:
sbt it:test
Run Unit and Integration Tests with coverage report:
sbt clean compile scalafmtAll coverage test it:test coverageReport
This code is open source software licensed under the Apache 2.0 License.