- Node.js
- Postman(nice to have)
- Download this repo
- Navigate to its Directory via command line
- run the following to install all the packages
npm install
npm run dev
The following is obtained by using Postman
- Enter http://localhost:8000/api/phonenumbers/parse/text/testparser+12224445555 into the URL(only one works).
- Hit send and the following should appear:
-
Enter http://localhost:8000/api/phonenumbers/parse/file into the URL.
-
Enter a Header Key as shown below:
-
Attach the file as form-data in the body and name it 'file':
-
This should be the result:
Enter the following in the command line:
npm run jest