Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working functionality #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

chuymedina96
Copy link

Overview

This PR implements the address parser functionality, allowing users to parse US addresses into components such as AddressNumber, StreetName, and ZipCode. It includes:

  • A Django API endpoint to handle address parsing.
  • JavaScript to interact with the API and display results.
  • Unit tests to ensure the parser works correctly and handles errors.

Closes #XXX

Demo

Optional. Screenshots, curl examples, etc.

Notes

  • Added error handling for invalid addresses.
  • Utilized modern JavaScript features for better code readability and maintainability.

Testing Instructions

  1. Check out this branch.

  2. Ensure Docker is installed.

  3. Run the following command to start the services and run the tests:
    docker-compose -f docker-compose.yml -f tests/docker-compose.yml run --rm app

  4. Tests should pass, and the linter should not report any errors.

  5. Open the app in the browser and test the address parser by submitting a valid and invalid address.

  6. Expected output: Valid addresses should be parsed into components; invalid addresses should display an error message.

  • How to test this PR
  • Prefer bulleted description
  • Start after checking out this branch
  • Include any setup required, such as bundling scripts, restarting services, etc.
  • Include test case, and expected output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants