Skip to content

reddy1praveen/rpa-jui-webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Build Status codecov Codacy Badge Codacy Badge Known Vulnerabilities

sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud sonarcloud

Judaical UI Webapp

This is the Web Application to allow Judaical staff (Judges & Panel Members) to access and work on cases.

Cloning repo

git clone https://github.com/hmcts/rpa-jui-webapp.git
cd rpa-jui-webapp/

Set Environmental Variables

export S2S_SECRET=
export IDAM_SECRET=

Run Local with quick reload for angular

To Run the Angular code

yarn install
yarn start-dev-proxy

To Run the Node Code

yarn install
npm run watch-dev-node
# or if you have nodemon
nodemon dev-server.js

Run Local like prod

yarn install
yarn build
yarn start

Run Local with docker

To Run the Angular code with docker

yarn start-dev-docker-proxy;

To Run the Node Code with docker

yarn start-dev-docker-node;

spin up docker

./docker/buildrun-docker-base.sh

setup test idam users

./bin/idam/idam.sh

setup test ccd data (note you need to find your own ccd def file)

./bin/ccd/ccd.sh ~/Downloads/CCD_Definition.xlsx

Run test

lint

 yarn test;
 open ./reports/lint/node/index.html;
 xdg-open ./reports/lint/node/index.html;
 open ./reports/lint/ng/index.html;
 xdg-open ./reports/lint/ng/index.html;

lint (ng Only)

 yarn test:ng;
 open ./reports/lint/ng/index.html;
 xdg-open ./reports/lint/ng/index.html;

lint (Node Only)

 yarn test:node;
 open ./reports/lint/node/index.html;
 xdg-open ./reports/lint/node/index.html;

Unit test

 yarn test;
 open ./reports/tests/unit/node/index.html;
 xdg-open ./reports/tests/unit/node/index.html;
 open ./reports/tests/unit/ng/index.html;
 xdg-open ./reports/tests/unit/ng/index.html;

Unit test (ng Only)

 yarn test:ng;
 open ./reports/tests/unit/ng/index.html;
 xdg-open ./reports/tests/unit/ng/index.html;

Unit test (Node Only)

 yarn test:node;
 open ./reports/tests/unit/node/index.html;
 xdg-open ./reports/tests/unit/node/index.html;

Unit test + coverage

 yarn test:coverage;
 open ./reports/tests/coverage/node/index.html;
 xdg-open ./reports/tests/coverage/node/index.html;
 open ./reports/tests/coverage/ng/index.html;
 xdg-open ./reports/tests/coverage/ng/index.html;

Unit test + coverage (ng Only)

 yarn test:coverage:ng;
 open ./reports/tests/coverage/ng/index.html;
 xdg-open ./reports/tests/coverage/ng/index.html;

Unit test + coverage (Node Only)

 yarn test:coverage:node;
 open ./reports/tests/coverage/node/index.html;
 xdg-open ./reports/tests/coverage/node/index.html;

Functional test

export TEST_EMAIL=;
export TEST_PASSWORD=;
yarn test:functional:local 
open ./reports/tests/functional/index.html;
xdg-open ./reports/tests/functional/index.html;

##Run Mock Server for CCD data for Development

Install JSON Server

npm install -g json-server

Set the environment variable :

Mac :

export JUI_ENV=mock;

Windows:

set JUI_ENV=mock
echo %JUI_ENV%

Run the mock Server

yarn install
yarn start-json-server

This will run a mock server (json-server) on port 3004 and sets the JUI_ENV as mock.

Now, run the below in the terminal and then start running the api (node)

export JUI_ENV=mock; 
yarn build; 
yarn start

Note : Here is the git repo for json-server : https://github.com/typicode/json-server

About

Judicial frontend application for Reform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 59.6%
  • JavaScript 29.0%
  • HTML 6.6%
  • CSS 2.4%
  • Shell 0.9%
  • Groovy 0.8%
  • Other 0.7%