The Borrower Frontend provides a service for a Borrower to view and sign their mortgage deeds online.
- Usage
- Install The Requirements
- Run The App
- Run The Unit Tests
- Acceptance Tests
- [Frontend] (#frontend)
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)
-
Clone the repo
-
Initialise the submodules
git submodule init
git submodule update
- 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
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.
Install the requirements
pip install -r requirements_test.txt
Run unit tests and provide coverage report
source test.sh
See, the following link for information on how to run the acceptance tests:-