Giter VIP home page Giter VIP logo

div-petitioner-frontend's Introduction

Divorce Petitioner Frontend License: MIT

This repo is for the frontend part of the journey that the petitioner will go through to apply for a divorce.

Setup

Building locally You need to have Yarn and Redis installed. This can be done with brew as follows:

brew install yarn
brew install redis

To run the front end app, run the following from the front end project root folder:

yarn add redis-server & yarn dev

The application will now be running on https://localhost:3000.

To run the tests and lint, run the following:

yarn test
yarn lint

Building with Docker

To begin download the azure client cli

brew update && brew install azure-cli

After it has finished downloaded run:

az login

This should open a browser window for you to login, use your HMCTS account

After logging in run the following command:

az acr login --name hmcts --subscription <ask the team for the secret>

To build the docker containers afresh:

make build

Install dependencies

To install NPM dependencies:

make install

This installs the dev dependencies to your local folder.

Start the app

make dev

The application will now be running on https://localhost:3000.

Running locally but pointing to real AAT services

This allows you to run the app while connecting to real IDAM/COS/Payment etc.. services in AAT

  • Make a copy of config/example-local-aat.yaml as local-aat.yaml (this file is .gitignored and shouldn't be commited to git because it contains secrets)
  • Copy the secrets into local-aat.yaml - the secret values can be found in div-pfe-aat in the Azure portal
  • Remove the conditional in app/middleware/draftPetitionStoreMiddleware.js to always use the real transformationServiceClient (this is temporary and should be removed)
  • Connect to the VPN
  • Run the app using yarn dev-aat

Testing

All commands from the package.json are available through make. They will be run inside a docker container, ensuring a consistent dev environment.

For example:

make test
make test-unit
make test-e2e
make lint
...

Licensing

This project is licensed under the MIT License - see the LICENSE file for details.

div-petitioner-frontend's People

Contributors

alexwakeman avatar amobarak avatar borislavpetrovhmcts avatar cotterale avatar david-gimelle avatar dependabot[bot] avatar dnenkov avatar dtaylor7 avatar hosainnet avatar iichr avatar magicobject avatar mattyod avatar mosinloye avatar mounikahmcts avatar ms-ek avatar mthava avatar neilmcw avatar niyioyelade avatar nsingamsetty avatar p-bremner avatar qzhou-hmcts avatar ravinderpal avatar richard-diamond avatar rob-doherty avatar slyg avatar tchow8 avatar timja avatar vakepati avatar vianvi avatar yarpo avatar

Watchers

 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.