code-challenge icon indicating copy to clipboard operation
code-challenge copied to clipboard

Completed challenge

Open SoyCarlos opened this issue 1 year ago • 0 comments

Overview

Complete DataMade code challenge.

  • Had to add npm as an installed package in Dockerfile to fix npm: command not found error.
  • Added implementation of usaddress parser to API in views.py.
  • Added id fields to elements in index.html to wire them up to backend through index.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

Screenshot 2024-07-14 at 9 38 59 PM

Screenshot 2024-07-14 at 9 39 23 PM

Screenshot 2024-07-14 at 9 35 35 PM

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.

SoyCarlos avatar Jul 15 '24 04:07 SoyCarlos