Giter Club home page Giter Club logo

ukhomeoffice.workflow-ui's Introduction

eForms Workflow Service UI

Build Status

Provides a UI for completing forms and actioning tasks.

Server

The spring boot application provides a server to serve the client code but also acts as a reverse proxy removing the need to provide any additional configuration set up in the UI.

Bootstrap configuration

The following environment variables are required to load properties from AWS secrets manager

  • AWS_SECRETS_MANAGER_ENABLED
  • AWS_REGION
  • AWS_ACCESS_KEY
  • AWS_SECRET_KEY
  • SPRING_PROFILES_ACTIVE

Application configuration

The following properties need to be configured in AWS secrets manager (example format provided)

{
  "auth.url": "http://localhost:8080/auth",
  "auth.realm": "elf",
  "auth.clientId": "local",
  "formApi.url": "http://localhost:4000",
  "serviceDesk.url": "service desk url",
  "uiEnvironment": "LOCAL",
  "uiVersion": "ALPHA",
  "workflowService.url": "http://localhost:8000",
  "ui.oauth2.jwt.issuer-uri": "http://localhost:8080/auth/realms/elf",
  "server-port": 8004
}

Start the server and it should start on port 8004

Client

The client code is developed using the create-react-app module. Additional scripts added:

"test-coverage" : "react-scripts test \"--coverage\" \"--watchAll=false\"",
"test-coverage-watch": "react-scripts test \"--coverage\" \"--watchAll=true\"",
"lint": "eslint --ignore-pattern node_modules/ --ext .js --ext .jsx --fix src"

To run the UI locally in hot deploy mode you will need to run

npm run start

This will use the reverse proxy defined in the package.json.

Assemble

To produce the final artefact, run the following from the root of the project

./gradlew clean assemble

This will first clean and build the client code and then copy the build directory into the static directory of the server. Giving you a final output of workflow-ui.jar which is a spring boot app.

You can then run the final output with

 AWS_ACCESS_KEY=XXXXX AWS_SECRET_KEY=XXXXXX AWS_REGION=eu-west-2 AWS_SECRETS_MANAGER_ENABLED=true SPRING_PROFILES_ACTIVE=local java -jar server/build/libs/workflow-ui.jar

ukhomeoffice.workflow-ui's People

Contributors

ajames14 avatar aminmc avatar anilreddy999 avatar belindac-vd avatar gavinorland avatar hed95 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.