Open
Conversation
Usage:
npm install install all the dependencies in your project
npm install <foo> add the <foo> dependency to your project
npm test run this project's tests
npm run <foo> run the script named <foo>
npm <command> -h quick help on <command>
npm -l display usage info for all commands
npm help <term> search for help on <term>
npm help npm more involved overview
All commands:
access, adduser, audit, bugs, cache, ci, completion,
config, dedupe, deprecate, diff, dist-tag, docs, doctor,
edit, exec, explain, explore, find-dupes, fund, get, help,
help-search, hook, init, install, install-ci-test,
install-test, link, ll, login, logout, ls, org, outdated,
owner, pack, ping, pkg, prefix, profile, prune, publish,
query, rebuild, repo, restart, root, run-script, search,
set, shrinkwrap, star, stars, start, stop, team, test,
token, uninstall, unpublish, unstar, update, version, view,
whoami
Specify configs in the ini-formatted file:
/Users/noahappelbaum/.npmrc
or on the command line via: npm <command> --key=value
More configuration info: npm help config
Configuration fields: npm help 7 config
npm@9.7.2 /opt/homebrew/lib/node_modules/npm to apt-get command explicitly, to fix Unknown command: "not"
To see a list of supported npm commands, run:
npm help error on Docker build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR consists of two major parts:
This PR also includes tests for the API endpoint, and a few other small fixes and adjustments (enumerated below)
Closes #XXX
Demo
Functioning app with network request:

Displaying an error message:

Tests passing

Notes
Other changes:
npmto theapt-get...line in the Dockerfile, to fix annpm not founderror when buildingdisplay: nonestyling on the address results div to use Bootstrap'sd-noneutility class. This maintains consistency with the rest of the page's styling, and makes manipulating the div's styling through JavaScript more straightforward.Testing Instructions
How to Test
New Test Cases
test_api_parse_succeeds-- The API should respond successfully, with expected JSON, on a valid addresstest_api_parse_succeeds_on_empty_string-- the API should respond successfully on an empty string, consistent with the output ofusaddressand expected frontend behaviortest_api_parse_raises_error-- The API should raise an error on an invalid address inputtest_api_parse_raises_error_on_missing_address_string-- The API should raise an error when missing address input (from a malformed request, e.g.)