Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

LandRegistry-Attic/dm-borrower-frontend

Repository files navigation

dm-borrower-frontend

The Borrower Frontend provides a service for a Borrower to view and sign their mortgage deeds online.

Contents

Usage

GET     /                               -- renders borrower landing page
GET     /health                         -- renders standard Gov UK template
GET     /searchdeed                     -- borrower views deed landing page
POST    /searchdeed/search              -- POST search for deed (deed reference is in the request body)

Install the requirements

  1. Clone the repo

  2. Initialise the submodules

git submodule init
git submodule update
  1. Install the requirements
pip install -r requirements.txt

Optional: export variable for deed-api

> export DEED_API_BASE_HOST=http://localhost:8000

default is localhost:9030

Run the app

python run.py runserver -host 0.0.0.0

optional --port 9000 where 9000 is the number of a port you can supply to start the server on.

Run the Unit Tests

Install the requirements

pip install -r requirements_test.txt

Run unit tests and provide coverage report

source test.sh

Acceptance tests

See, the following link for information on how to run the acceptance tests:-

Acceptance Tests

Frontend

Frontend build readme