code-challenge
code-challenge copied to clipboard
Completed challenge
Overview
Complete DataMade code challenge.
- Had to add npm as an installed package in
Dockerfileto fixnpm: command not founderror. - Added implementation of
usaddressparser to API inviews.py. - Added id fields to elements in
index.htmlto wire them up to backend throughindex.js. - Completed 3 unit tests.
- 1 unit test for valid address
- 1 unit test for invalid address - repeat label (e.g. 1010 10th Street, Modesto 95354 1010 10th street)
- 1 unit test for invalid address - empty address field
Demo
Notes
On some machines rather than using docker-compose you may need to use docker compose.
Testing Instructions
To run tests:
docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app
or as mentioned above:
docker compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app.