Giter VIP home page Giter VIP logo

companieshouse.document-generator's Introduction

document-generator

The Companies house Document Generator for generating documents

Requirements

In order to build document-generator locally you will need the following:

Getting started

  1. Run make
  2. Run ./start.sh

Environment Variables

The supported environmental variables have been categorised by use case and are as follows.

Deployment Variables

Name Description Mandatory Default Example
DOCUMENT_RENDER_SERVICE_HOST Render service host localhost:valid_port_number
DOCUMENT_BUCKET_NAME Bucket name to store the document dev-pdf-bucket/name_of_file
API_URL Api url to go through eric api.orctel.internal:$ERIC_PORT
CHS_API_KEY Chs api key encoded and used to make APi calls valid Api key

Modules

The following are the modules that exist within document generator.

document-generator-api

The document-generator-api module is a sub module within document-generator, it holds the api controller which is called passing resourceUri and mimeType to uri /private/documents/generate. The api deals with requesting the data to be rendered through the document-generator-interface, as well as making the call to the render service to generate a document. The details of the api request and response can be seen within document-generator-api/swagger-2.0/models

document-generator-interface

The document-generator-interface module is a sub module within document-generator, it holds the interface DocumentInfoService that contains the methods to getDocumentInfo in order to return the DocumentInfo model. Which will contain String data, String templateName, String assetId, String path, String descriptionIdentifier and a Map<String, String> description Values.

document-generator-accounts

The document-generator-accounts module is a sub module within document-generator, it holds the accounts specific implementation of the DocumentInfoService that contains the method getDocumentInfo. Which returns the DocumentInfo model which will contain String data, String templateName, String assetId, String path, String descriptionIdentifier and a Map<String, String> description Values.

document-generator-prosecution

The document-generator-prosecution module is a sub module within document-generator, which is the prosecution implementation of the DocumentInfoService that contains the method getDocumentInfo. Which returns the DocumentInfo model which will contain String data, String templateName, String assetId, String path, String descriptionIdentifier and a Map<String, String> description Values for Ultimatum and SJP letters.

companieshouse.document-generator's People

Contributors

amoriartych avatar bsaunders95 avatar caismith-ch avatar carlswan avatar ch-mcabrera avatar ch-tstrickland avatar chrisjburns avatar drosser avatar emead avatar ethatcher83 avatar faisal-amin82 avatar hwilliams1 avatar jamie87 avatar jmetherell avatar jsimons1989 avatar kpeacheyjones avatar kpjones15 avatar leahtaylor avatar luke-williams avatar macreman avatar marcransome avatar mathsh avatar mreis-ch avatar rjadhav-ch avatar rsachdevch avatar sbasile-ch avatar simonsgithub avatar sroberts2 avatar zain-abbas1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.