This application generates documents from templates using Docmosis -> Tornado.
The project uses Gradle as a build tool but you don't have to install it locally since there is a
./gradlew
wrapper script.
To build project please execute the following command:
./gradlew build
To get the project to build in IntelliJ IDEA, you have to:
- Install the Lombok plugin: Preferences -> Plugins
- Enable Annotation Processing: Preferences -> Build, Execution, Deployment -> Compiler -> Annotation Processors
You can run the application by executing following command:
./gradlew bootRun
The application will start locally on http://localhost:8081
API documentation is provided with Swagger: UI to interact with the API resources
http://localhost:8081/swagger-ui.html
Login to Azure CLI
az login
Login to ACR
az acr login --name hmctspublic
Build the docker image
docker build . -t hmcts/ethos-repl-docmosis-service:latest
Run the service with all its dependencies
docker-compose -f docker/app.yml up -d
To stop the service
docker-compose -f docker/app.yml down
To run all unit tests please execute following command:
./gradlew test
To run all checks (including unit tests) please execute following command:
./gradlew check
This project is licensed under the MIT License - see the LICENSE.md file for details.