An open API service indexing awesome lists of open source software.

https://github.com/dvsa/cvs-svc-doc-gen

Fork of MOT Doc Gen service. Produces various Test Certificates, Ministry plates and other documents
https://github.com/dvsa/cvs-svc-doc-gen

app-dev cvs-project

Last synced: 2 days ago
JSON representation

Fork of MOT Doc Gen service. Produces various Test Certificates, Ministry plates and other documents

Awesome Lists containing this project

README

          

### How to run document generator on local env

(official doc: https://github.com/awslabs/aws-sam-local)

## Pre-requisite

You will need to install the following DVSA packages to make sure you have the security checks required in place:

- [git-secrets](https://github.com/awslabs/git-secrets)
- [repo-security-scanner](https://github.com/UKHomeOffice/repo-security-scanner)
- Java 21

## Installation:

1. Install Docker (https://store.docker.com/editions/community/docker-ce-desktop-mac)
2. Install aws-sam-local: npm install -g aws-sam-local
2.1) Verify the installation worked: sam --version

Usage (run this command from root folder):

1. Invoke function: sam local invoke
OR
2. Run API Gateway locally: sam local start-api

Debugging Applications:

1. Invoke a function locally in debug mode on port 5858: sam local invoke -d 5858
OR
2. Start local API Gateway in debug mode on port 5858: sam local start-api -d 5858
3. Hit endpoint: http://127.0.0.1:3000/
4. Run debugger

### Architeture

Documentation for this service can be found [here](https://wiki.dvsacloud.uk/display/MP/Document+Generation+Service+Contract).

### Unit tests

To execute the unit tests, run: `./gradlew clean test`